avcodec/hevc_ps: Fix undefined shift in pcm code
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 27 Aug 2017 21:59:09 +0000 (23:59 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commit25ff26aaac973f608cd3ffbe4a0dbed8670a6788
treecc58785dca92e2a7e4b4ff5419a1996ca14dfcd2
parentb5f0302eeb742923709d469f24cce83edf779926
avcodec/hevc_ps: Fix undefined shift in pcm code

Fixes: runtime error: shift exponent -1 is negative
Fixes: 3091/clusterfuzz-testcase-minimized-6229767969832960

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 2a83866c9f9531eb096c9b9fe0550e742b931ad1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc_ps.c