summaryrefslogtreecommitdiffstats
path: root/libavcodec/libutvideodec.cpp
diff options
context:
space:
mode:
authorEddie Hao <eddiehao1@gmail.com>2016-01-16 21:41:54 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-17 12:01:35 +0100
commita6dc1eb8376c59511845e8c2c92c5bd0a7e31b72 (patch)
treebc401c849c438b3bfb9413b00cf441e133c9a2eb /libavcodec/libutvideodec.cpp
parent757248ea3cd917a7755cb15f817a9b1f15578718 (diff)
downloadffmpeg-streaming-a6dc1eb8376c59511845e8c2c92c5bd0a7e31b72.zip
ffmpeg-streaming-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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp
index 47261a6..7c60f4f 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
OpenPOWER on IntegriCloud