27#define PCM_DEMUX_TARGET_FPS 10
31 int nb_samples, max_samples, bits_per_sample;
48 nb_samples = 1 <<
av_log2(nb_samples);
68 pkt->stream_index = 0;
88 if (block_align <= 0 || byte_rate <= 0 ||
FFMAX(timestamp, st->
time_base.
num) > INT64_MAX / byte_rate)
90 if (timestamp < 0) timestamp = 0;
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
#define flags(name, subs,...)
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
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.
@ AV_ROUND_DOWN
Round toward -infinity.
@ AV_ROUND_UP
Round toward +infinity.
int nb_channels
Number of channels in this layout.
This struct describes the properties of an encoded stream.
AVChannelLayout ch_layout
The channel layout and number of channels.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
int block_align
The number of bytes per coded audio frame, required by some formats.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.