diff options
| author | Mohamed Tarek <mt@rockbox.org> | 2010-06-21 10:48:34 +0000 |
|---|---|---|
| committer | Mohamed Tarek <mt@rockbox.org> | 2010-06-21 10:48:34 +0000 |
| commit | 816fca820caa537a07c761f49d1f8ecf996a91ce (patch) | |
| tree | 8ea2805d0536bd45c7a4f56fa39904e65829466a /apps/codecs/libwmapro/libavutil/mathematics.c | |
| parent | 9297a02d4964cae7727248665e278b251cac5533 (diff) | |
| download | rockbox-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/libavutil/mathematics.c')
| -rw-r--r-- | apps/codecs/libwmapro/libavutil/mathematics.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libwmapro/libavutil/mathematics.c b/apps/codecs/libwmapro/libavutil/mathematics.c index 04f3e87..7af0104 100644 --- a/apps/codecs/libwmapro/libavutil/mathematics.c +++ b/apps/codecs/libwmapro/libavutil/mathematics.c @@ -23,7 +23,7 @@ * miscellaneous math routines and tables */ -#include <assert.h> +//#include <assert.h> #include <stdint.h> #include <limits.h> #include "mathematics.h" @@ -76,9 +76,9 @@ int64_t av_gcd(int64_t a, int64_t b){ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){ int64_t r=0; - assert(c > 0); - assert(b >=0); - assert(rnd >=0 && rnd<=5 && rnd!=4); + //assert(c > 0); + //assert(b >=0); + //assert(rnd >=0 && rnd<=5 && rnd!=4); if(a<0 && a != INT64_MIN) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1)); |