Module: libav Branch: release/9 Commit: d55f7a174d49c0b2e87254c075013a7008ddf798
Author: Luca Barbato <[email protected]> Committer: Luca Barbato <[email protected]> Date: Sun Jul 14 16:49:43 2013 +0200 indeo: Do not reference mismatched tiles Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected] (cherry picked from commit f9e5261cab067be7278f73d515bc9b601eb56202) Signed-off-by: Luca Barbato <[email protected]> --- libavcodec/ivi_common.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index 80d3572..36293a1 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++; } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
