Merge commit 'f9e5261cab067be7278f73d515bc9b601eb56202'
* commit 'f9e5261cab067be7278f73d515bc9b601eb56202': indeo: Do not reference mismatched tiles Conflicts: libavcodec/ivi_common.c See: dab70c62d20081bcf879b7b6bc3ffabc2e331542 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
c4b904caea
@ -342,11 +342,11 @@ 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) {
|
||||
tile->ref_mbs = ref_tile->mbs;
|
||||
}else
|
||||
av_log(NULL, AV_LOG_DEBUG, "Cannot use ref_tile, too few mbs\n");
|
||||
|
||||
if (tile->num_MBs != ref_tile->num_MBs) {
|
||||
av_log(NULL, AV_LOG_DEBUG, "ref_tile mismatch\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
tile->ref_mbs = ref_tile->mbs;
|
||||
ref_tile++;
|
||||
}
|
||||
tile++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user