diff options
author | Eddie Hao <eddiehao1@gmail.com> | 2016-01-16 21:41:54 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-17 12:01:35 +0100 |
commit | a6dc1eb8376c59511845e8c2c92c5bd0a7e31b72 (patch) | |
tree | bc401c849c438b3bfb9413b00cf441e133c9a2eb /libavcodec/libutvideodec.cpp | |
parent | 757248ea3cd917a7755cb15f817a9b1f15578718 (diff) | |
download | ffmpeg-a6dc1eb8376c59511845e8c2c92c5bd0a7e31b72.tar.gz |
remove all uses of the deprecated avpicture_get_size() function
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/libutvideodec.cpp')
-rw-r--r-- | libavcodec/libutvideodec.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp index 47261a6c7f..7c60f4fb83 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 |