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 00:03:53 +0000 (01:03 +0100)
commita5989651f0759059f9e08906685e6cec77f518d9
treeaf3fc6c0c09ef1e499b9efbfcd8d6e8a98eb7aba
parent1e512388ee986eaadb1cd960c96e64548d36f643
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