22#include "config_components.h"
47 st->
codecpar->
bit_rate = ((
int[]){ 16000, 24000, 32000, 40000 })[
c->code_size - 2];
62#define OFFSET(x) offsetof(G726Context, x)
64 {
"code_size",
"Bits per G.726 code",
72 .class_name =
"G.726 demuxer",
78#if CONFIG_G726_DEMUXER
90#if CONFIG_G726LE_DEMUXER
static const FFInputFormat * ffifmt(const AVInputFormat *fmt)
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_CODEC_ID_ADPCM_G726LE
AVStream * avformat_new_stream(AVFormatContext *s, const struct 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
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
int nb_channels
Number of channels in this layout.
Describe the class of an AVClass context structure.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
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).
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
The number of audio samples per second.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.