23 #ifndef AVFORMAT_AUDIOINTERLEAVE_H
24 #define AVFORMAT_AUDIOINTERLEAVE_H
struct AudioInterleaveContext AudioInterleaveContext
const int * samples
current samples per frame, pointer to samples_per_frame
const int * samples_per_frame
must be 0-terminated
unsigned fifo_size
size of currently allocated FIFO
int ff_audio_interleave_init(AVFormatContext *s, const int *samples_per_frame, AVRational time_base)
void ff_audio_interleave_close(AVFormatContext *s)
AVRational time_base
time base of output audio packets
int ff_audio_rechunk_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush, int(*get_packet)(AVFormatContext *, AVPacket *, AVPacket *, int), int(*compare_ts)(AVFormatContext *, AVPacket *, AVPacket *))
Rechunk audio PCM packets per AudioInterleaveContext->samples_per_frame and interleave them correctly...
a very simple circular buffer FIFO implementation
rational number numerator/denominator
int sample_size
size of one sample all channels included
static av_cold void flush(AVCodecContext *avctx)
Flush (reset) the frame ID after seeking.
static int get_packet(URLContext *s, int for_header)
Interact with the server by receiving and sending RTMP packets until there is some significant data (...
This structure stores compressed data.