Commit 684f4abf authored by Justin Ruggles's avatar Justin Ruggles

ac3enc: remove unneeded local variable in asym_quant()

parent f21fb76b
......@@ -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)
{
int m, v;
int m;
v = (((c << e) >> (24 - qbits)) + 1) >> 1;
c = (((c << e) >> (24 - qbits)) + 1) >> 1;
m = (1 << (qbits-1));
if (v >= m)
v = m - 1;
av_assert2(v >= -m);
return v;
if (c >= m)
c = m - 1;
av_assert2(c >= -m);
return c;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment