diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-02 19:57:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-07-01 12:11:55 +0200 |
commit | d68a494271c8459a16b6a67e3ca67bc57b94d9dc (patch) | |
tree | b8b70d104fda7e9862c7be3a8377d84cbe960a73 | |
parent | a1b60ae5e5d62b07f9fd256a4d38eaf4ca14eec6 (diff) | |
download | ffmpeg-d68a494271c8459a16b6a67e3ca67bc57b94d9dc.tar.gz |
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>
(cherry picked from commit a7e02cf3ad6f6eaae07fa68ecb93014e1dfd224e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/ivi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c index 993b0196f4..8ee3e7185a 100644 --- a/libavcodec/ivi.c +++ b/libavcodec/ivi.c @@ -429,6 +429,10 @@ av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes, t_height = !p ? tile_height : (tile_height + 3) >> 2; 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_height >>= 1; } |