summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/libcook/bitstream.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/codecs/libcook/bitstream.h b/apps/codecs/libcook/bitstream.h
index 19d3751bb1..b4c3136be3 100644
--- a/apps/codecs/libcook/bitstream.h
+++ b/apps/codecs/libcook/bitstream.h
@@ -23,7 +23,7 @@
23 23
24#include <inttypes.h> 24#include <inttypes.h>
25#include <stdlib.h> 25#include <stdlib.h>
26#include "assert.h" 26//#include <assert.h>
27#include <string.h> 27#include <string.h>
28#include <stdio.h> 28#include <stdio.h>
29#include "bswap.h" 29#include "bswap.h"
@@ -193,7 +193,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value)
193 int bit_left; 193 int bit_left;
194 194
195 // printf("put_bits=%d %x\n", n, value); 195 // printf("put_bits=%d %x\n", n, value);
196 assert(n == 32 || value < (1U << n)); 196 //assert(n == 32 || value < (1U << n));
197 197
198 bit_buf = s->bit_buf; 198 bit_buf = s->bit_buf;
199 bit_left = s->bit_left; 199 bit_left = s->bit_left;
@@ -308,7 +308,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value)
308 308
309static inline void put_sbits(PutBitContext *pb, int bits, int32_t val) 309static inline void put_sbits(PutBitContext *pb, int bits, int32_t val)
310{ 310{
311 assert(bits >= 0 && bits <= 31); 311 //assert(bits >= 0 && bits <= 31);
312 312
313 put_bits(pb, bits, val & ((1<<bits)-1)); 313 put_bits(pb, bits, val & ((1<<bits)-1));
314} 314}
@@ -328,12 +328,12 @@ static inline uint8_t* pbBufPtr(PutBitContext *s)
328 * PutBitContext must be flushed & aligned to a byte boundary before calling this. 328 * PutBitContext must be flushed & aligned to a byte boundary before calling this.
329 */ 329 */
330static inline void skip_put_bytes(PutBitContext *s, int n){ 330static inline void skip_put_bytes(PutBitContext *s, int n){
331 assert((put_bits_count(s)&7)==0); 331 //assert((put_bits_count(s)&7)==0);
332#ifdef ALT_BITSTREAM_WRITER 332#ifdef ALT_BITSTREAM_WRITER
333 FIXME may need some cleaning of the buffer 333 FIXME may need some cleaning of the buffer
334 s->index += n<<3; 334 s->index += n<<3;
335#else 335#else
336 assert(s->bit_left==32); 336 //assert(s->bit_left==32);
337 s->buf_ptr += n; 337 s->buf_ptr += n;
338#endif 338#endif
339} 339}