diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index b36b31dfac..db33767820 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -823,6 +823,7 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *data_size, avctx->release_buffer(avctx, &ctx->frame); ctx->frame.reference = 0; + avcodec_set_dimensions(avctx, ctx->planes[0].width, ctx->planes[0].height); if ((result = avctx->get_buffer(avctx, &ctx->frame)) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return result;