diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-02 16:52:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-02 16:53:37 +0100 |
commit | e93d911e483ffcf3da3dd2cbac2895fa061d2f58 (patch) | |
tree | 1377e9a75a3ffc4bf042923ee6cee1f725179635 /libavcodec | |
parent | d964db5742f317ff6c6ed6cf3e168b5b38566069 (diff) | |
download | ffmpeg-e93d911e483ffcf3da3dd2cbac2895fa061d2f58.tar.gz |
h263: fix zygo debug printing overreading.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ituh263dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c index e92af33eaf..b8224b31e6 100644 --- a/libavcodec/ituh263dec.c +++ b/libavcodec/ituh263dec.c @@ -1114,7 +1114,7 @@ int ff_h263_decode_picture_header(MpegEncContext *s) } ff_h263_show_pict_info(s); - if (s->pict_type == AV_PICTURE_TYPE_I && s->codec_tag == AV_RL32("ZYGO")){ + if (s->pict_type == AV_PICTURE_TYPE_I && s->codec_tag == AV_RL32("ZYGO") && get_bits_left(&s->gb) >= 85 + 13*3*16 + 50){ int i,j; for(i=0; i<85; i++) av_log(s->avctx, AV_LOG_DEBUG, "%d", get_bits1(&s->gb)); av_log(s->avctx, AV_LOG_DEBUG, "\n"); |