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>
Mon, 5 Dec 2016 23:07:50 +0000 (00:07 +0100)
commit334901aea0e351005a9e3d9d7c96f8158224914b
treeef93cca5a11599bd7860ba59989271814b1916a5
parentbbe9a4b54263f59b0b88e3f18369889ceed7a57a
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