projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b153c68
)
simplify
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 17 Apr 2008 02:30:00 +0000
(
02:30
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 17 Apr 2008 02:30:00 +0000
(
02:30
+0000)
Originally committed as revision 12868 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/alac.c
patch
|
blob
|
history
diff --git
a/libavcodec/alac.c
b/libavcodec/alac.c
index
d93dfd2
..
35d6271
100644
(file)
--- a/
libavcodec/alac.c
+++ b/
libavcodec/alac.c
@@
-184,11
+184,9
@@
static void bastardized_rice_decompress(ALACContext *alac,
int k; /* size of extra bits */
/* read k, that is bits as is */
- k = 31 -
rice_kmodifier -
count_leading_zeros((history >> 9) + 3);
+ k = 31 - count_leading_zeros((history >> 9) + 3);
- if (k < 0)
- k += rice_kmodifier;
- else
+ if (k >= rice_kmodifier)
k = rice_kmodifier;
if (k != 1) {