24 #define RTP_G726_HANDLER(bitrate) \ 25 static int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, PayloadContext *data) \ 27 AVStream *stream = s->streams[st_index]; \ 28 AVCodecContext *codec = stream->codec; \ 30 codec->bits_per_coded_sample = bitrate/8; \ 31 codec->bit_rate = codec->bits_per_coded_sample * codec->sample_rate; \ 36 RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \ 37 .enc_name = "G726-" #bitrate, \ 38 .codec_type = AVMEDIA_TYPE_AUDIO, \ 39 .codec_id = AV_CODEC_ID_ADPCM_G726, \ 40 .init = g726_ ## bitrate ## _init, \
#define RTP_G726_HANDLER(bitrate)