]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpc8.c
lavc: add a wrapper for AVCodecContext.get_buffer().
[ffmpeg] / libavcodec / mpc8.c
index f43cb4ead632e61e90a1a23b64a2fc16942e5de7..a270be36fd36af5ab25c321eac15684cb3eb4a4a 100644 (file)
@@ -30,6 +30,7 @@
 #include "avcodec.h"
 #include "get_bits.h"
 #include "dsputil.h"
+#include "internal.h"
 #include "mpegaudiodsp.h"
 
 #include "mpc.h"
@@ -250,7 +251,7 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
 
     /* get output buffer */
     c->frame.nb_samples = MPC_FRAME_SIZE;
-    if ((res = avctx->get_buffer(avctx, &c->frame)) < 0) {
+    if ((res = ff_get_buffer(avctx, &c->frame)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return res;
     }