aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-06-21 16:49:16 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-06-22 12:18:10 -0400
commit684f4abfac6e007d3481e06e1c0777b826e3ba42 (patch)
treec651916f20f697344e2a89a81141e151ea089b2c
parentf21fb76b1be18036c93c3e29fe1889a9fabf30b3 (diff)
downloadffmpeg-684f4abfac6e007d3481e06e1c0777b826e3ba42.tar.gz
ac3enc: remove unneeded local variable in asym_quant()
-rw-r--r--libavcodec/ac3enc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index db45c8360e..1f7d05e87c 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -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;
}