[FFmpeg-cvslog] indeo4: setup width/height properly.

Michael Niedermayer git at videolan.org
Sat Apr 14 20:21:08 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Apr 14 20:04:05 2012 +0200| [01bf2ad7351fdaa2e21b6bdf963d22d6ffccb920] | committer: Michael Niedermayer

indeo4: setup width/height properly.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01bf2ad7351fdaa2e21b6bdf963d22d6ffccb920
---

 libavcodec/indeo4.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c
index 0fe5f8f..4d315b5 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");



More information about the ffmpeg-cvslog mailing list