avcodec/scpr: optimize shift loop.
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Sep 2017 21:29:13 +0000 (23:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 10 Sep 2017 17:08:23 +0000 (19:08 +0200)
commit981f04b2ae2d6e0355386aaff39840eb5d390a36
tree032c9b815e133f694c7ed61c7399a6a61eca1599
parentcbe181c8e1611aaee2a85ab522e17b1322bdd4de
avcodec/scpr: optimize shift loop.

Speeds code up from 50sec to 15sec

Fixes Timeout
Fixes: 3242/clusterfuzz-testcase-5811951672229888

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