[FFmpeg-cvslog] avcodec/put_bits: Update size_in_bits in set_put_bits_buffer_size()

Michael Niedermayer git at videolan.org
Tue Jun 2 00:50:02 CEST 2015


ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Mon May 25 04:53:09 2015 +0200| [e03fa4b88daf97eec4d37b665a753fbee6760546] | committer: Michael Niedermayer

avcodec/put_bits: Update size_in_bits in set_put_bits_buffer_size()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit e4c2ec879b1121c02279cd60a54643da0d249e40)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e03fa4b88daf97eec4d37b665a753fbee6760546
---

 libavcodec/put_bits.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h
index 8081fb9..fff08f6 100644
--- a/libavcodec/put_bits.h
+++ b/libavcodec/put_bits.h
@@ -235,6 +235,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 */



More information about the ffmpeg-cvslog mailing list