Browse Source

simplify

Originally committed as revision 12868 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
ea3372a256
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      libavcodec/alac.c

+ 2
- 4
libavcodec/alac.c View File

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


Loading…
Cancel
Save