mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
avcodec/apedec: use proper macro and type for pivot variable
This commit is contained in:
parent
ea0972f6dd
commit
2fb517855a
1 changed files with 3 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue