X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibutvideoenc.cpp;h=96d8fe103045042a5e86a94732775039a2878f05;hb=7d1e985528886139ea00387ad34c75cfab018d48;hp=87462470e211c063b43837eb2cd4e84bbaeb82bd;hpb=69ead86027d04e8f1dacd7b63eb936f62a8e0c6a;p=ffmpeg diff --git a/libavcodec/libutvideoenc.cpp b/libavcodec/libutvideoenc.cpp index 87462470e21..96d8fe10304 100644 --- a/libavcodec/libutvideoenc.cpp +++ b/libavcodec/libutvideoenc.cpp @@ -27,6 +27,7 @@ extern "C" { #include "libavutil/avassert.h" +#include "libavutil/imgutils.h" #include "avcodec.h" #include "internal.h" } @@ -94,7 +95,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx) * We use this buffer to hold the data that Ut Video returns, * since we cannot decode planes separately with it. */ - ret = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height); + ret = av_image_get_buffer_size(avctx->pix_fmt, avctx->width, avctx->height, 1); if (ret < 0) { av_free(info); return ret;