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.tar.gz rockbox-d63abfc7eb7db5eb36b325198fbb6ceaf8778685.zip |
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 7af0104516..f607d68b6e 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){ | |||
103 | a0 = a0*b0 + t1a; | 103 | a0 = a0*b0 + t1a; |
104 | a1 = a1*b1 + (t1>>32) + (a0<t1a); | 104 | a1 = a1*b1 + (t1>>32) + (a0<t1a); |
105 | a0 += r; | 105 | a0 += r; |
106 | a1 += a0<r; | 106 | a1 += a0<(unsigned)r; |
107 | 107 | ||
108 | for(i=63; i>=0; i--){ | 108 | for(i=63; i>=0; i--){ |
109 | // int o= a1 & 0x8000000000000000ULL; | 109 | // int o= a1 & 0x8000000000000000ULL; |
110 | a1+= a1 + ((a0>>i)&1); | 110 | a1+= a1 + ((a0>>i)&1); |
111 | t1+=t1; | 111 | t1+=t1; |
112 | if(/*o || */c <= a1){ | 112 | if(/*o || */(unsigned)c <= a1){ |
113 | a1 -= c; | 113 | a1 -= c; |
114 | t1++; | 114 | t1++; |
115 | } | 115 | } |