avcodec/scpr: Use local variables 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:23 +0000 (17:44 +0100)
commit609e2e64f6e0b348ce861ccd8d17c7a7651b9157
tree0cd2aeda1387f7b08bc5aec1fe0db9e17d1d7a8e
parentb6c2c589041cd99c5bf4117d13708ab010f97bd1
avcodec/scpr: Use local variables in decode_run_i()

This improves the speed of decode_run_i()

Before: clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5656821117747200 in 17420 ms
After:  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