1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Mohamed Tarek 2010-06-21 10:48:34 +00:00
parent 9297a02d49
commit 816fca820c
16 changed files with 246 additions and 42 deletions

View file

@ -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));