diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c index 0fe5f8fb5c..4d315b5b8a 100644 --- a/libavcodec/indeo4.c +++ b/libavcodec/indeo4.c @@ -805,6 +805,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, if (ctx->frame.data[0]) avctx->release_buffer(avctx, &ctx->frame); + avcodec_set_dimensions(avctx, ctx->planes[0].width, ctx->planes[0].height); ctx->frame.reference = 0; if ((result = avctx->get_buffer(avctx, &ctx->frame)) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");