]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vble.c
Merge commit '9f5d6f460ceeda8b4ac29b3249a49e275b64c706'
[ffmpeg] / libavcodec / vble.c
index 30b77cecf6f3208763acee2f3711ac4d78d2a18e..bb9c81c187f484810d696403692c30d375e1c917 100644 (file)
@@ -26,6 +26,8 @@
 
 #define BITSTREAM_READER_LE
 
+#include "libavutil/imgutils.h"
+
 #include "avcodec.h"
 #include "get_bits.h"
 #include "huffyuvdsp.h"
@@ -187,8 +189,8 @@ static av_cold int vble_decode_init(AVCodecContext *avctx)
     avctx->pix_fmt = AV_PIX_FMT_YUV420P;
     avctx->bits_per_raw_sample = 8;
 
-    ctx->size = avpicture_get_size(avctx->pix_fmt,
-                                   avctx->width, avctx->height);
+    ctx->size = av_image_get_buffer_size(avctx->pix_fmt,
+                                         avctx->width, avctx->height, 1);
 
     ctx->val = av_malloc_array(ctx->size, sizeof(*ctx->val));