aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-25 04:53:09 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-20 04:43:39 +0200
commit4947158b1f34c7a1b90cac7a6e205529353af1b6 (patch)
treed27fdb8ea497610d39a326e7c01f79b4cd6f73a8
parent308bcf53f9d6c9c0001f3466e36a1e09a611ed58 (diff)
downloadffmpeg-4947158b1f34c7a1b90cac7a6e205529353af1b6.tar.gz
avcodec/put_bits: Update size_in_bits in set_put_bits_buffer_size()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e4c2ec879b1121c02279cd60a54643da0d249e40) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/put_bits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h
index 81be6b311b..82a0858942 100644
--- a/libavcodec/put_bits.h
+++ b/libavcodec/put_bits.h
@@ -252,6 +252,7 @@ static inline void skip_put_bits(PutBitContext *s, int n)
static inline void set_put_bits_buffer_size(PutBitContext *s, int size)
{
s->buf_end = s->buf + size;
+ s->size_in_bits = 8*size;
}
#endif /* AVCODEC_PUT_BITS_H */