mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/apedec: use proper macro and type for pivot variable
This commit is contained in:
parent
ea0972f6dd
commit
2fb517855a
@ -559,12 +559,10 @@ static inline int ape_decode_value_3900(APEContext *ctx, APERice *rice)
|
||||
|
||||
static inline int ape_decode_value_3990(APEContext *ctx, APERice *rice)
|
||||
{
|
||||
unsigned int x, overflow;
|
||||
int base, pivot;
|
||||
unsigned int x, overflow, pivot;
|
||||
int base;
|
||||
|
||||
pivot = rice->ksum >> 5;
|
||||
if (pivot == 0)
|
||||
pivot = 1;
|
||||
pivot = FFMAX(rice->ksum >> 5, 1);
|
||||
|
||||
overflow = range_get_symbol(ctx, counts_3980, counts_diff_3980);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user