]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vcr1.c
lavc: add a wrapper for AVCodecContext.get_buffer().
[ffmpeg] / libavcodec / vcr1.c
index d1d63b566a69523ba80367a5e0c51d17e3043834..1614dd306193dc7d2ad95ed7fe78bb3e03f66583 100644 (file)
@@ -26,6 +26,8 @@
 
 #include "avcodec.h"
 #include "dsputil.h"
+#include "internal.h"
+#include "libavutil/internal.h"
 
 typedef struct VCR1Context {
     AVFrame picture;
@@ -46,7 +48,7 @@ static av_cold int vcr1_decode_init(AVCodecContext *avctx)
 {
     vcr1_common_init(avctx);
 
-    avctx->pix_fmt = PIX_FMT_YUV410P;
+    avctx->pix_fmt = AV_PIX_FMT_YUV410P;
 
     return 0;
 }
@@ -76,7 +78,7 @@ static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
         avctx->release_buffer(avctx, p);
 
     p->reference = 0;
-    if (avctx->get_buffer(avctx, p) < 0) {
+    if (ff_get_buffer(avctx, p) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return -1;
     }