mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
alac: conditionally set sign_modifier to 1
It is already unconditionally set to 0 prior to this, so we can modify it only when needed.
This commit is contained in:
parent
7e6593e977
commit
5177413d20
@ -133,8 +133,6 @@ static void bastardized_rice_decompress(ALACContext *alac,
|
|||||||
int k;
|
int k;
|
||||||
unsigned int block_size;
|
unsigned int block_size;
|
||||||
|
|
||||||
sign_modifier = 1;
|
|
||||||
|
|
||||||
k = 7 - av_log2(history) + ((history + 16) >> 6 /* / 64 */);
|
k = 7 - av_log2(history) + ((history + 16) >> 6 /* / 64 */);
|
||||||
k = FFMIN(k, alac->rice_limit);
|
k = FFMIN(k, alac->rice_limit);
|
||||||
|
|
||||||
@ -149,8 +147,8 @@ static void bastardized_rice_decompress(ALACContext *alac,
|
|||||||
output_count += block_size;
|
output_count += block_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (block_size > 0xffff)
|
if (block_size <= 0xffff)
|
||||||
sign_modifier = 0;
|
sign_modifier = 1;
|
||||||
|
|
||||||
history = 0;
|
history = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user