X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fcngdec.c;h=d2b1257af9b547fb138e33858c6ec506e89facc8;hb=6cd1dbe6dffe82e7561a52b731f2cb57a3967bc0;hp=9b6dfef08ea416ea711e387af7ec9b96166aac15;hpb=2684d2e3ea8a1a2863ae9842d072341b44b09829;p=ffmpeg diff --git a/libavcodec/cngdec.c b/libavcodec/cngdec.c index 9b6dfef08ea..d2b1257af9b 100644 --- a/libavcodec/cngdec.c +++ b/libavcodec/cngdec.c @@ -24,6 +24,7 @@ #include "libavutil/common.h" #include "avcodec.h" #include "celp_filters.h" +#include "internal.h" #include "libavutil/lfg.h" typedef struct CNGContext { @@ -144,7 +145,7 @@ static int cng_decode_frame(AVCodecContext *avctx, void *data, p->excitation, avctx->frame_size, p->order); p->avframe.nb_samples = avctx->frame_size; - if ((ret = avctx->get_buffer(avctx, &p->avframe)) < 0) { + if ((ret = ff_get_buffer(avctx, &p->avframe)) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return ret; }