diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-22 20:42:28 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-22 20:48:54 +0200 |
commit | 470204218f37e361da02d75845f9db9793a4ee53 (patch) | |
tree | ba86e91f6b2c0a35192e4c04ab7182cadb5d3699 /libavcodec/vble.c | |
parent | 4c46f1d493f4d68121526fbede459619a02afa5a (diff) | |
parent | f890677d05bc4e8b494a73373ab4cc19791bf884 (diff) | |
download | ffmpeg-470204218f37e361da02d75845f9db9793a4ee53.tar.gz |
Merge commit 'f890677d05bc4e8b494a73373ab4cc19791bf884'
* commit 'f890677d05bc4e8b494a73373ab4cc19791bf884':
Replace any remaining avpicture function with imgutils
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r-- | libavcodec/vble.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c index 30b77cecf6..bb9c81c187 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" @@ -187,8 +189,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_array(ctx->size, sizeof(*ctx->val)); |