avcodec/dirac_vlc: Fix undefined shift
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 18 Jul 2017 23:43:24 +0000 (01:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 24 Jul 2017 01:03:14 +0000 (03:03 +0200)
commitf10252e47d81ac043cd3a9e5d04e38f6e8ed4e26
tree59482c985b50f374bd12fcf6a2a9618f581168f9
parent4627033a236c538f76abb83f84d021af3eacd907
avcodec/dirac_vlc: Fix undefined shift

Fixes: runtime error: shift exponent 64 is too large for 64-bit type 'residual' (aka 'unsigned long')
Fixes: 2674/clusterfuzz-testcase-minimized-4999700518273024

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 69e7daf6ce2a5893936ba18572c58180b29d67f9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dirac_vlc.c