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>
Mon, 11 Sep 2017 11:28:21 +0000 (13:28 +0200)
commitb590758298cc6f7bac710ebaecb99a4de878c7f8
treeb6aae1cff2f32c3a11c4aa8fd9a7f6fc9ab15f74
parent8eb8882af5ccc6efd715783a151ddedba4587b9d
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>
(cherry picked from commit 981f04b2ae2d6e0355386aaff39840eb5d390a36)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/scpr.c