summaryrefslogtreecommitdiff
path: root/libavcodec/vble.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-10-14 11:33:24 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-10-21 11:59:59 +0200
commitf890677d05bc4e8b494a73373ab4cc19791bf884 (patch)
treecb66705498706dc94caa00ae80962f770a7ba056 /libavcodec/vble.c
parent13bddab7de10aebf6efb98aa6d7ff0c51bb0e364 (diff)
Replace any remaining avpicture function with imgutils
avpicture_get_size() -> av_image_get_buffer_size() Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r--libavcodec/vble.c6
1 files changed, 4 insertions, 2 deletions
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));