diff options
| author | Mohamed Tarek <mt@rockbox.org> | 2010-07-14 19:37:52 +0000 |
|---|---|---|
| committer | Mohamed Tarek <mt@rockbox.org> | 2010-07-14 19:37:52 +0000 |
| commit | d63abfc7eb7db5eb36b325198fbb6ceaf8778685 (patch) | |
| tree | dc9496f504711569180fd9c5a91cf6e748815869 /apps/codecs/libwmapro/libavutil/mathematics.c | |
| parent | 16284ae8aef30ec67d7fd9c34519bce17d64ab3a (diff) | |
| download | rockbox-d63abfc7eb7db5eb36b325198fbb6ceaf8778685.zip rockbox-d63abfc7eb7db5eb36b325198fbb6ceaf8778685.tar.gz rockbox-d63abfc7eb7db5eb36b325198fbb6ceaf8778685.tar.bz2 rockbox-d63abfc7eb7db5eb36b325198fbb6ceaf8778685.tar.xz | |
Add WMA Pro to the main build. WMA Pro now plays on target and decodes in 151% realtime in a 320kbps sample on a sansa e200. Lots of cleanup still need to be done, and optimisations should start soon too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27417 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/libavutil/mathematics.c')
| -rw-r--r-- | apps/codecs/libwmapro/libavutil/mathematics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libwmapro/libavutil/mathematics.c b/apps/codecs/libwmapro/libavutil/mathematics.c index 7af0104..f607d68 100644 --- a/apps/codecs/libwmapro/libavutil/mathematics.c +++ b/apps/codecs/libwmapro/libavutil/mathematics.c @@ -103,13 +103,13 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){ a0 = a0*b0 + t1a; a1 = a1*b1 + (t1>>32) + (a0<t1a); a0 += r; - a1 += a0<r; + a1 += a0<(unsigned)r; for(i=63; i>=0; i--){ // int o= a1 & 0x8000000000000000ULL; a1+= a1 + ((a0>>i)&1); t1+=t1; - if(/*o || */c <= a1){ + if(/*o || */(unsigned)c <= a1){ a1 -= c; t1++; } |