diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-01 09:45:10 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-05 03:28:45 +0200 |
commit | 386990a955c55e06dac278ea4d6cef940fb58e12 (patch) | |
tree | 47c341eeda0f195389552a1ea32f8538b7626e93 /libavcodec/aacenc_quantization.h | |
parent | d23cb45c1c482c5fcedfd2d83bfd912690709871 (diff) | |
download | ffmpeg-386990a955c55e06dac278ea4d6cef940fb58e12.tar.gz |
avcodec/aacenc_quantization: Remove always-zero function parameter
rtz is only ever nonzero for quantize_and_encode_band().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/aacenc_quantization.h')
-rw-r--r-- | libavcodec/aacenc_quantization.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/aacenc_quantization.h b/libavcodec/aacenc_quantization.h index fc5a46b875..f3c3553886 100644 --- a/libavcodec/aacenc_quantization.h +++ b/libavcodec/aacenc_quantization.h @@ -250,20 +250,20 @@ static float (*const quantize_and_encode_band_cost_rtz_arr[])( static inline float quantize_band_cost(struct AACEncContext *s, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, - int *bits, float *energy, int rtz) + int *bits, float *energy) { return quantize_and_encode_band_cost(s, NULL, in, NULL, scaled, size, scale_idx, - cb, lambda, uplim, bits, energy, rtz); + cb, lambda, uplim, bits, energy, 0); } static inline int quantize_band_cost_bits(struct AACEncContext *s, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, - int *bits, float *energy, int rtz) + int *bits, float *energy) { int auxbits; quantize_and_encode_band_cost(s, NULL, in, NULL, scaled, size, scale_idx, - cb, 0.0f, uplim, &auxbits, energy, rtz); + cb, 0.0f, uplim, &auxbits, energy, 0); if (bits) { *bits = auxbits; } |