avcodec/get_bits: Fix get_sbits_long(0)
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Dec 2016 22:44:56 +0000 (23:44 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Dec 2016 19:25:15 +0000 (20:25 +0100)
commit66bf84e2c4e14f18d96fc3dc495aadc3a9e8ec75
tree0f0bb72eaad9a5d4c876c1af529ca5df0e94484a
parent9f7eb718e9d345179283a1bbfee1d89a5e2d18bc
avcodec/get_bits: Fix get_sbits_long(0)

Fixes undefined behavior
Fixes: 640889-media

Found-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c72fa432349881d5a445cd110abf698cc94d490d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/get_bits.h