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>
Tue, 29 Aug 2017 19:20:50 +0000 (21:20 +0200)
commit51ee15df5813c6e6225b7dcb74e085eb782e60af
treefd8bdb253baf82b284ac06795cca5fea9e9947cc
parenta5018026af1d1eb89005fe5f4646398276e9fcfd
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