]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libutvideodec.cpp
Merge commit '002c47798da0c43a053822c8041144798d49ed84'
[ffmpeg] / libavcodec / libutvideodec.cpp
index 47261a6c7fc29d0c0ee3d70ee1c6bd858167cb87..7c60f4fb832ad835d4a868f538885d18c54c4a4b 100644 (file)
@@ -27,6 +27,7 @@
 
 extern "C" {
 #include "avcodec.h"
+#include "libavutil/imgutils.h"
 }
 
 #include "libutvideo.h"
@@ -93,7 +94,7 @@ static av_cold int utvideo_decode_init(AVCodecContext *avctx)
     }
 
     /* Only allocate the buffer once */
-    utv->buf_size = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height);
+    utv->buf_size = av_image_get_buffer_size(avctx->pix_fmt, avctx->width, avctx->height, 1);
 #ifdef UTVF_UQY2
     if (format == UTVF_v210)
         utv->buf_size += avctx->height * ((avctx->width + 47) / 48) * 128; // the linesize used by the decoder, this does not seem to be exported