27 #define RAW_SAMPLES 1024
46 int stream_index, int64_t timestamp,
int flags)
49 int block_align, byte_rate;
59 if (block_align <= 0 || byte_rate <= 0)
61 if (timestamp < 0) timestamp = 0;
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
AVFormatInternal * internal
An opaque field for libavformat internal usage.
AVStream ** streams
A list of all streams in the file.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
int flags
A combination of AV_PKT_FLAG values.
int block_align
Audio only.
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
Rescale a 64-bit integer with specified rounding.
AVIOContext * pb
I/O context.
int sample_rate
Audio only.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
AVCodecParameters * codecpar
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
This structure stores compressed data.