From f890677d05bc4e8b494a73373ab4cc19791bf884 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 14 Oct 2015 11:33:24 +0200 Subject: Replace any remaining avpicture function with imgutils avpicture_get_size() -> av_image_get_buffer_size() Signed-off-by: Vittorio Giovara --- libavcodec/vble.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libavcodec/vble.c') diff --git a/libavcodec/vble.c b/libavcodec/vble.c index 996a984a58..7ce1aeebfa 100644 --- a/libavcodec/vble.c +++ b/libavcodec/vble.c @@ -26,6 +26,8 @@ #define BITSTREAM_READER_LE +#include "libavutil/imgutils.h" + #include "avcodec.h" #include "get_bits.h" #include "huffyuvdsp.h" @@ -183,8 +185,8 @@ static av_cold int vble_decode_init(AVCodecContext *avctx) avctx->pix_fmt = AV_PIX_FMT_YUV420P; avctx->bits_per_raw_sample = 8; - ctx->size = avpicture_get_size(avctx->pix_fmt, - avctx->width, avctx->height); + ctx->size = av_image_get_buffer_size(avctx->pix_fmt, + avctx->width, avctx->height, 1); ctx->val = av_malloc(ctx->size * sizeof(*ctx->val)); -- cgit v1.2.3