22 #include "libavutil/intreadwrite.h"
AVCodecContext * codec
Codec context associated with this stream.
int64_t data_offset
offset of the first packet
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
static int read_packet(AVFormatContext *s, AVPacket *pkt)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int buf_size
Size of buf except extra allocated bytes.
AVInputFormat ff_boa_demuxer
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
static int read_header(AVFormatContext *s)
This structure contains the data a format has to probe a file.
int channels
number of audio channels
This structure stores compressed data.
static int probe(AVProbeData *p)