X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtpdec_g726.c;h=7b3f6cbb89da9ce9562421f2e716a7614b9dff08;hb=8895bf7b78650c0c21c88cec0484e138ec511a4b;hp=4a0b6acf59fa5291574c4b1dc12403eca889cb6f;hpb=fa6dce4c572fd52266201f1c9d83d26bc662bf56;p=ffmpeg diff --git a/libavformat/rtpdec_g726.c b/libavformat/rtpdec_g726.c index 4a0b6acf59f..7b3f6cbb89d 100644 --- a/libavformat/rtpdec_g726.c +++ b/libavformat/rtpdec_g726.c @@ -18,11 +18,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/attributes.h" #include "avformat.h" #include "rtpdec_formats.h" #define RTP_G726_HANDLER(bitrate) \ -static int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, PayloadContext *data) \ +static av_cold int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, \ + PayloadContext *data) \ { \ AVStream *stream = s->streams[st_index]; \ AVCodecContext *codec = stream->codec; \ @@ -36,7 +38,7 @@ static int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, PayloadCon RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \ .enc_name = "G726-" #bitrate, \ .codec_type = AVMEDIA_TYPE_AUDIO, \ - .codec_id = CODEC_ID_ADPCM_G726, \ + .codec_id = AV_CODEC_ID_ADPCM_G726, \ .init = g726_ ## bitrate ## _init, \ }