25 #define RTP_G726_HANDLER(bitrate) \
26 static av_cold int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, \
27 PayloadContext *data) \
29 AVStream *stream = s->streams[st_index]; \
30 AVCodecContext *codec = stream->codec; \
32 codec->bits_per_coded_sample = bitrate/8; \
33 codec->bit_rate = codec->bits_per_coded_sample * codec->sample_rate; \
38 RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \
39 .enc_name = "G726-" #bitrate, \
40 .codec_type = AVMEDIA_TYPE_AUDIO, \
41 .codec_id = AV_CODEC_ID_ADPCM_G726, \
42 .init = g726_ ## bitrate ## _init, \
Macro definitions for various function/variable attributes.
#define RTP_G726_HANDLER(bitrate)