avcodec/dvdsubdec: Check for fully transparent rectangles earlier
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Jun 2018 21:34:14 +0000 (23:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 2 Jul 2018 11:55:28 +0000 (13:55 +0200)
commitd24c9e55f64eebf67a9e488daa17332533481c20
treefa848a5b6829b6877880e68f6606be526372cc38
parent06a8d7ff00f5c3d13d331a56db839fb825ea6697
avcodec/dvdsubdec: Check for fully transparent rectangles earlier

Testcase with large transparent rectangles changes from 67 sec to 3 sec decode time

Fixes: Timeout
Fixes: 8728/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVDSUB_fuzzer-5190088756559872

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dvdsubdec.c