Browse Source

on2avc: Use the integer abs() version

Fixes clang warning "floating point absolute value function 'fabsf'
when argument is of integer type [-Wabsolute-value]".
tags/n2.8
Vittorio Giovara 10 years ago
parent
commit
2d5176fad1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/on2avc.c

+ 1
- 1
libavcodec/on2avc.c View File

@@ -186,7 +186,7 @@ static int on2avc_decode_band_scales(On2AVCContext *c, GetBitContext *gb)

static inline float on2avc_scale(int v, float scale)
{
return v * sqrtf(fabsf(v)) * scale;
return v * sqrtf(abs(v)) * scale;
}

// spectral data is coded completely differently - there are no unsigned codebooks


Loading…
Cancel
Save