]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libopusdec.c
lavc: add a wrapper for AVCodecContext.get_buffer().
[ffmpeg] / libavcodec / libopusdec.c
index 1b5b7464961d3cf1300bd1bad106500096fcda8c..15fa4934982674e9a7114816d8726e1b9309e997 100644 (file)
@@ -25,6 +25,7 @@
 #include "libavutil/avassert.h"
 #include "libavutil/intreadwrite.h"
 #include "avcodec.h"
+#include "internal.h"
 #include "vorbis.h"
 #include "mathops.h"
 #include "libopus.h"
@@ -116,7 +117,7 @@ static int libopus_decode(AVCodecContext *avc, void *frame,
     int ret, nb_samples;
 
     opus->frame.nb_samples = MAX_FRAME_SIZE;
-    ret = avc->get_buffer(avc, &opus->frame);
+    ret = ff_get_buffer(avc, &opus->frame);
     if (ret < 0) {
         av_log(avc, AV_LOG_ERROR, "get_buffer() failed\n");
         return ret;