* VBLE Decoder
*/
-#define BITSTREAM_READER_LE
+#include "libavutil/imgutils.h"
+#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "get_bits.h"
#include "huffyuvdsp.h"
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));
.init = vble_decode_init,
.close = vble_decode_close,
.decode = vble_decode_frame,
- .capabilities = CODEC_CAP_DR1,
+ .capabilities = AV_CODEC_CAP_DR1,
};