1
0
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:
Paul B Mahol 2020-10-06 01:56:43 +02:00
parent ea0972f6dd
commit 2fb517855a

View File

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