Browse Source

avcodec/apedec: use proper macro and type for pivot variable

tags/n4.4
Paul B Mahol 5 years ago
parent
commit
2fb517855a
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      libavcodec/apedec.c

+ 3
- 5
libavcodec/apedec.c 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);



Loading…
Cancel
Save