summaryrefslogtreecommitdiffstats
path: root/libavcodec/libutvideoenc.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/libutvideoenc.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/libutvideoenc.cpp')
-rw-r--r--libavcodec/libutvideoenc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libutvideoenc.cpp b/libavcodec/libutvideoenc.cpp
index 8746247..96d8fe1 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;
OpenPOWER on IntegriCloud