avcodec/ac3: Explicitly return to discard large amounts of nonsense bytes
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 Jan 2019 23:45:51 +0000 (00:45 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 6 Feb 2019 23:29:01 +0000 (00:29 +0100)
commit1e59071aad9582fd2ef53b3e9c0dcf4ee913af0f
treee238f9eee0fa3605f789a9b690f4914c7e410a93
parent835ab35ef023373fd05abffc754d30b4582c6506
avcodec/ac3: Explicitly return to discard large amounts of nonsense bytes

Changes 19sec to 10ms (12559) runtime, 17sec to 177ms (12570)
Fixes: Timeout
Fixes: 12559/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AC3_fuzzer-5666516266123264
Fixes: 12561/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AC3_FIXED_fuzzer-5682923041193984
Fixes: 12570/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EAC3_fuzzer-5194734308425728

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