44 st->
codecpar->
bit_rate = ((
int[]){ 16000, 24000, 32000, 40000 })[
c->code_size - 2];
59 #define OFFSET(x) offsetof(G726Context, x)
61 {
"code_size",
"Bits per G.726 code",
68 #if CONFIG_G726_DEMUXER
69 static const AVClass g726le_demuxer_class = {
82 .priv_class = &g726le_demuxer_class,
87 #if CONFIG_G726LE_DEMUXER
88 static const AVClass g726_demuxer_class = {
101 .priv_class = &g726_demuxer_class,
@ AV_CODEC_ID_ADPCM_G726LE
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Describe the class of an AVClass context structure.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
int bits_per_coded_sample
The number of bits per sample in the codedwords.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
Audio only.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.