diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-14 20:04:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-14 20:04:51 +0200 |
commit | 01bf2ad7351fdaa2e21b6bdf963d22d6ffccb920 (patch) | |
tree | c93fa56bff0a149ff7d23ab3d4d1390d1cc09cf0 /libavcodec/indeo4.c | |
parent | 0b27136c65c1b4fab29b5b354e1f470f974bc310 (diff) | |
download | ffmpeg-01bf2ad7351fdaa2e21b6bdf963d22d6ffccb920.tar.gz |
indeo4: setup width/height properly.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/indeo4.c')
-rw-r--r-- | libavcodec/indeo4.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |