summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro/put_bits.h
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-06-21 10:48:34 +0000
committerMohamed Tarek <mt@rockbox.org>2010-06-21 10:48:34 +0000
commit816fca820caa537a07c761f49d1f8ecf996a91ce (patch)
tree8ea2805d0536bd45c7a4f56fa39904e65829466a /apps/codecs/libwmapro/put_bits.h
parent9297a02d4964cae7727248665e278b251cac5533 (diff)
downloadrockbox-816fca820caa537a07c761f49d1f8ecf996a91ce.zip
rockbox-816fca820caa537a07c761f49d1f8ecf996a91ce.tar.gz
rockbox-816fca820caa537a07c761f49d1f8ecf996a91ce.tar.bz2
rockbox-816fca820caa537a07c761f49d1f8ecf996a91ce.tar.xz
Wrote apps/codecs/wmapro.c and modified libwmapro to make the codec work in the sim. Neither libwmapro nor wmapro.c have been added to the main build yet, codecs.make should be edited to compile both with rockbox.
current status of the decoder : - Plays and seeks in the sim - Still in floating point git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27006 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/put_bits.h')
-rw-r--r--apps/codecs/libwmapro/put_bits.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/codecs/libwmapro/put_bits.h b/apps/codecs/libwmapro/put_bits.h
index c013966..9f66256 100644
--- a/apps/codecs/libwmapro/put_bits.h
+++ b/apps/codecs/libwmapro/put_bits.h
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <stdlib.h>
-#include <assert.h>
+//#include <assert.h>
#include "libavutil/bswap.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
@@ -153,7 +153,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value)
int bit_left;
// printf("put_bits=%d %x\n", n, value);
- assert(n <= 31 && value < (1U << n));
+ //assert(n <= 31 && value < (1U << n));
bit_buf = s->bit_buf;
bit_left = s->bit_left;
@@ -264,7 +264,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value)
static inline void put_sbits(PutBitContext *pb, int n, int32_t value)
{
- assert(n >= 0 && n <= 31);
+ //assert(n >= 0 && n <= 31);
put_bits(pb, n, value & ((1<<n)-1));
}
@@ -304,12 +304,12 @@ static inline uint8_t* put_bits_ptr(PutBitContext *s)
*/
static inline void skip_put_bytes(PutBitContext *s, int n)
{
- assert((put_bits_count(s)&7)==0);
+ //assert((put_bits_count(s)&7)==0);
#ifdef ALT_BITSTREAM_WRITER
FIXME may need some cleaning of the buffer
s->index += n<<3;
#else
- assert(s->bit_left==32);
+ //assert(s->bit_left==32);
s->buf_ptr += n;
#endif
}