summaryrefslogtreecommitdiffstats
path: root/libavcodec/ivi.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-07-02 19:57:08 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-07-17 23:18:50 +0200
commita7e02cf3ad6f6eaae07fa68ecb93014e1dfd224e (patch)
treec0cb528a1d25b79ad0cf661b58f5bb799790c2dd /libavcodec/ivi.c
parent056865a1d679640511f861a030e1c33aa1a46716 (diff)
downloadffmpeg-streaming-a7e02cf3ad6f6eaae07fa68ecb93014e1dfd224e.zip
ffmpeg-streaming-a7e02cf3ad6f6eaae07fa68ecb93014e1dfd224e.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>
Diffstat (limited to 'libavcodec/ivi.c')
-rw-r--r--libavcodec/ivi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c
index e9c4b9b..73fcf51 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;
}
OpenPOWER on IntegriCloud