X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibutvideodec.cpp;h=7c60f4fb832ad835d4a868f538885d18c54c4a4b;hb=053900ca4c72fd4bcaec7e6c7e842fcade3c9f3f;hp=47261a6c7fc29d0c0ee3d70ee1c6bd858167cb87;hpb=f299d8d9f283453cd7671bd174cfdc81503d5e5f;p=ffmpeg diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp index 47261a6c7fc..7c60f4fb832 100644 --- a/libavcodec/libutvideodec.cpp +++ b/libavcodec/libutvideodec.cpp @@ -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