[FFmpeg-cvslog] r17006 - trunk/libavcodec/bitstream.h

michael subversion
Thu Feb 5 19:25:01 CET 2009


Author: michael
Date: Thu Feb  5 19:25:01 2009
New Revision: 17006

Log:
Add size_in_bits to PutBitContext

Modified:
   trunk/libavcodec/bitstream.h

Modified: trunk/libavcodec/bitstream.h
==============================================================================
--- trunk/libavcodec/bitstream.h	Thu Feb  5 18:00:10 2009	(r17005)
+++ trunk/libavcodec/bitstream.h	Thu Feb  5 19:25:01 2009	(r17006)
@@ -85,6 +85,7 @@ typedef struct PutBitContext {
     int bit_left;
     uint8_t *buf, *buf_ptr, *buf_end;
 #endif
+    int size_in_bits;
 } PutBitContext;
 
 static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
@@ -94,6 +95,7 @@ static inline void init_put_bits(PutBitC
         buffer = NULL;
     }
 
+    s->size_in_bits= 8*buffer_size;
     s->buf = buffer;
     s->buf_end = s->buf + buffer_size;
 #ifdef ALT_BITSTREAM_WRITER




More information about the ffmpeg-cvslog mailing list