22 #include "libavutil/mathematics.h"
27 int stream_index, int64_t timestamp,
int flags)
30 int block_align, byte_rate;
40 if (block_align <= 0 || byte_rate <= 0)
42 if (timestamp < 0) timestamp = 0;
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding) av_const
Rescale a 64-bit integer with specified rounding.
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...
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
int bit_rate
the average bitrate
int64_t av_rescale(int64_t a, int64_t b, int64_t c) av_const
Rescale a 64-bit integer with rounding to nearest.
AVStream ** streams
A list of all streams in the file.
int sample_rate
samples per second
AVIOContext * pb
I/O context.
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...