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;
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.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
AVFormatInternal * internal
An opaque field for libavformat internal usage.
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
AVStream ** streams
A list of all streams in the file.
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
int flags
A combination of AV_PKT_FLAG values.
AVCodecContext * codec
Codec context associated with this stream.
int bit_rate
the average bitrate
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
int sample_rate
samples per second
AVIOContext * pb
I/O context.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
int channels
number of audio channels
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.