avcodec/gdv: Optimize and factorize scaling loops
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 Jan 2019 18:51:04 +0000 (19:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 14 Jan 2019 16:16:55 +0000 (17:16 +0100)
commit6e23736aefa83859fdb6faae4fd14c169f1a41ab
tree854ea9149ec5ef0e12b6a73979074004cb08017e
parent75ea329b78f40537864e2ca2833c087c20041181
avcodec/gdv: Optimize and factorize scaling loops

Fixes: Timeout
Fixes: 11067/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5686623711264768

Before change: Executed clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5686623711264768 in 34386 ms
After  change: Executed clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5686623711264768 in 24327 ms

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