23 #ifndef AVFORMAT_AUDIOINTERLEAVE_H 24 #define AVFORMAT_AUDIOINTERLEAVE_H int ff_audio_rechunk_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush, int(*get_packet)(AVFormatContext *, AVPacket *, AVPacket *, int), int(*compare_ts)(AVFormatContext *, const AVPacket *, const AVPacket *))
Rechunk audio PCM packets per AudioInterleaveContext->samples_per_frame and interleave them correctly...
static void flush(AVCodecContext *avctx)
int ff_audio_interleave_init(AVFormatContext *s, const int samples_per_frame, AVRational time_base)
int64_t n
number of generated packets
unsigned fifo_size
size of currently allocated FIFO
void ff_audio_interleave_close(AVFormatContext *s)
AVRational time_base
time base of output audio packets
a very simple circular buffer FIFO implementation
Rational number (pair of numerator and denominator).
int sample_size
size of one sample all channels included
int samples_per_frame
samples per frame if fixed, 0 otherwise
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.
int64_t nb_samples
number of generated samples