Browse Source

avcodec/ivi: Ask for samples with odd tiles

Fixes: Assertion failure
Fixes: 15422/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO5_fuzzer-5676625481433088

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.2
Michael Niedermayer 6 years ago
parent
commit
a7e02cf3ad
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/ivi.c

+ 4
- 0
libavcodec/ivi.c View File

@@ -429,6 +429,10 @@ av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes,
t_height = !p ? tile_height : (tile_height + 3) >> 2; t_height = !p ? tile_height : (tile_height + 3) >> 2;


if (!p && planes[0].num_bands == 4) { if (!p && planes[0].num_bands == 4) {
if (t_width % 2 || t_height % 2) {
avpriv_request_sample(NULL, "Odd tiles");
return AVERROR_PATCHWELCOME;
}
t_width >>= 1; t_width >>= 1;
t_height >>= 1; t_height >>= 1;
} }


Loading…
Cancel
Save