From 01bf2ad7351fdaa2e21b6bdf963d22d6ffccb920 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 14 Apr 2012 20:04:05 +0200 Subject: [PATCH] indeo4: setup width/height properly. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer --- libavcodec/indeo4.c | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.11.0