[FFmpeg-cvslog] indeo: Do not reference mismatched tiles
Luca Barbato
git at videolan.org
Mon Jul 15 14:04:20 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sun Jul 14 16:49:43 2013 +0200| [f9e5261cab067be7278f73d515bc9b601eb56202] | committer: Luca Barbato
indeo: Do not reference mismatched tiles
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9e5261cab067be7278f73d515bc9b601eb56202
---
libavcodec/ivi_common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c
index 6436cd3..de9ad55 100644
--- a/libavcodec/ivi_common.c
+++ b/libavcodec/ivi_common.c
@@ -343,6 +343,8 @@ static int ivi_init_tiles(IVIBandDesc *band, IVITile *ref_tile,
tile->ref_mbs = 0;
if (p || b) {
+ if (tile->num_MBs != ref_tile->num_MBs)
+ return AVERROR_INVALIDDATA;
tile->ref_mbs = ref_tile->mbs;
ref_tile++;
}
More information about the ffmpeg-cvslog
mailing list