1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-03 09:27:53 +02:00
Originally committed as revision 12868 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-04-17 02:30:00 +00:00
parent b153c68b8a
commit ea3372a256

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