avcodec/scpr: Factor some indexes out in decode_run_i()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Dec 2018 01:21:00 +0000 (02:21 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 31 Dec 2018 16:44:25 +0000 (17:44 +0100)
commit20564d23fd931c7f7b55b878b5bcd60e24e0a739
tree081ad3078fbe04dbe29b89870acb2c591d49477f
parent609e2e64f6e0b348ce861ccd8d17c7a7651b9157
avcodec/scpr: Factor some indexes out in decode_run_i()

This improves the speed of decode_run_i()

After:  clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200 in 13516 ms
Before: clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200 in 14018 ms

Improves: 11270/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200

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