[FFmpeg-cvslog] indeo5: check for unsupported luma block type

Michael Niedermayer git at videolan.org
Sun Apr 15 21:32:47 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 15 21:01:35 2012 +0200| [88a97d660d65b8d5ac2ca719969c0096ace00114] | committer: Michael Niedermayer

indeo5: check for unsupported luma block type

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=88a97d660d65b8d5ac2ca719969c0096ace00114
---

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

diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c
index d0aea84..b35486b 100644
--- a/libavcodec/indeo5.c
+++ b/libavcodec/indeo5.c
@@ -167,6 +167,11 @@ static int decode_gop_header(IVI5DecContext *ctx, AVCodecContext *avctx)
             blk_size = 8 >> get_bits1(&ctx->gb);
             mb_size  = blk_size << !mb_size;
 
+            if (p==0 && blk_size==4) {
+                av_log(avctx, AV_LOG_ERROR, "4x4 luma blocks are unsupported!\n");
+                return AVERROR_PATCHWELCOME;
+            }
+
             blk_size_changed = mb_size != band->mb_size || blk_size != band->blk_size;
             if (blk_size_changed) {
                 band->mb_size  = mb_size;



More information about the ffmpeg-cvslog mailing list