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 AVCodecParameters *par = stream->codecpar; \
32 par->bits_per_coded_sample = bitrate/8; \
33 par->bit_rate = par->bits_per_coded_sample * par->sample_rate; \
38 RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \
39 .enc_name = "AAL2-G726-" #bitrate, \
40 .codec_type = AVMEDIA_TYPE_AUDIO, \
41 .codec_id = AV_CODEC_ID_ADPCM_G726, \
42 .init = g726_ ## bitrate ## _init, \
44 RTPDynamicProtocolHandler ff_g726le_ ## bitrate ## _dynamic_handler = { \
45 .enc_name = "G726-" #bitrate, \
46 .codec_type = AVMEDIA_TYPE_AUDIO, \
47 .codec_id = AV_CODEC_ID_ADPCM_G726LE, \
48 .init = g726_ ## bitrate ## _init, \
Macro definitions for various function/variable attributes.
#define RTP_G726_HANDLER(bitrate)