58     int i, channels, 
bps, samplerate;
 
   59     int64_t framepos, start_offset;
 
   60     uint32_t nb_samples, crc;
 
   75     if(samplerate <= 0 || samplerate > 1000000){
 
#define AVERROR_INVALIDDATA
Invalid data found when processing input. 
int av_add_index_entry(AVStream *st, int64_t pos, int64_t timestamp, int size, int distance, int flags)
Add an index entry into a sorted list. 
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
void ff_id3v1_read(AVFormatContext *s)
Read an ID3v1 tag. 
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext. 
AVIndexEntry * index_entries
Only used if the format does not support seeking natively. 
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward. 
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16
uint8_t * extradata
some codecs need / can use extradata like Huffman tables. 
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file. 
AVStream ** streams
A list of all streams in the file. 
#define AVERROR_EOF
End of file. 
bitstream reader API header. 
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext. 
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv). 
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown. 
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf. 
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered. 
int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags)
Get the index for a specific timestamp. 
unsigned int avio_rl32(AVIOContext *s)
int64_t timestamp
Timestamp in AVStream.time_base units, preferably the time from which on correctly decoded frames are...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int64_t ff_ape_parse_tag(AVFormatContext *s)
Read and parse an APE tag. 
AVCodecContext * codec
Codec context associated with this stream. 
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero. 
void ffio_init_checksum(AVIOContext *s, unsigned long(*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum)
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable. 
uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length)
Calculate the CRC of a block. 
static int read_header(FFV1Context *f)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
enum AVMediaType codec_type
int sample_rate
samples per second 
AVIOContext * pb
I/O context. 
unsigned long ffio_get_checksum(AVIOContext *s)
This structure contains the data a format has to probe a file. 
int64_t duration
Decoding: duration of the stream, in stream time base. 
const AVCRC * av_crc_get_table(AVCRCId crc_id)
Get an initialized standard CRC table. 
unsigned int avio_rl16(AVIOContext *s)
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
int error_recognition
Error recognition; higher values will detect more errors but may misdetect some more or less valid pa...
#define AV_EF_CRCCHECK
Verify checksums embedded in the bitstream (could be of either encoded or decoded data...
int channels
number of audio channels 
void * priv_data
Format private data. 
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
#define MKTAG(a, b, c, d)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32
This structure stores compressed data.