]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sunrast.c
lavc: add a wrapper for AVCodecContext.get_buffer().
[ffmpeg] / libavcodec / sunrast.c
index a10f44964817947d1558f5e8324c8723be7accb3..310ac2c7b9bce10a5b89ddfe37877db7a4e4721e 100644 (file)
@@ -23,6 +23,7 @@
 #include "libavutil/intreadwrite.h"
 #include "libavutil/imgutils.h"
 #include "avcodec.h"
+#include "internal.h"
 #include "sunrast.h"
 
 typedef struct SUNRASTContext {
@@ -108,7 +109,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
 
     if (w != avctx->width || h != avctx->height)
         avcodec_set_dimensions(avctx, w, h);
-    if ((ret = avctx->get_buffer(avctx, p)) < 0) {
+    if ((ret = ff_get_buffer(avctx, p)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return ret;
     }