]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/adpcm.c
lavc: add a wrapper for AVCodecContext.get_buffer().
[ffmpeg] / libavcodec / adpcm.c
index b6a20e2c322012840c12d98c91081d787b6796b0..3b0eb8b9d0df3e775b50f6e77770068e5965cc8f 100644 (file)
@@ -23,6 +23,7 @@
 #include "bytestream.h"
 #include "adpcm.h"
 #include "adpcm_data.h"
+#include "internal.h"
 
 /**
  * @file
@@ -611,7 +612,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
 
     /* get output buffer */
     c->frame.nb_samples = nb_samples;
-    if ((ret = avctx->get_buffer(avctx, &c->frame)) < 0) {
+    if ((ret = ff_get_buffer(avctx, &c->frame)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return ret;
     }