diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-15 16:19:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-15 16:19:53 +0200 |
commit | c347f75d6bda24b6a3a81d343c0d84a73abc862c (patch) | |
tree | a0e59e51dd2a589ac1d4e983d62f0a613a3d36a0 | |
parent | c4c6aea397f62421bf8ef0449b2b465a53e4ab4d (diff) | |
download | ffmpeg-c347f75d6bda24b6a3a81d343c0d84a73abc862c.tar.gz |
avcodec/put_bits: Remove dead code in put_bits()
Fixes CID1297574
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/put_bits.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h index 760b233ced..52eb7fbcf8 100644 --- a/libavcodec/put_bits.h +++ b/libavcodec/put_bits.h @@ -166,7 +166,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) av_assert2(s->buf_ptr+3<s->buf_end); AV_WL32(s->buf_ptr, bit_buf); s->buf_ptr += 4; - bit_buf = (bit_left == 32) ? 0 : value >> bit_left; + bit_buf = value >> bit_left; bit_left += 32; } bit_left -= n; |