1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

ac3enc: remove unneeded local variable in asym_quant()

This commit is contained in:
Justin Ruggles 2011-06-21 16:49:16 -04:00
parent f21fb76b1b
commit 684f4abfac

View File

@ -1123,14 +1123,14 @@ static inline int sym_quant(int c, int e, int levels)
*/ */
static inline int asym_quant(int c, int e, int qbits) static inline int asym_quant(int c, int e, int qbits)
{ {
int m, v; int m;
v = (((c << e) >> (24 - qbits)) + 1) >> 1; c = (((c << e) >> (24 - qbits)) + 1) >> 1;
m = (1 << (qbits-1)); m = (1 << (qbits-1));
if (v >= m) if (c >= m)
v = m - 1; c = m - 1;
av_assert2(v >= -m); av_assert2(c >= -m);
return v; return c;
} }