mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
ac3enc: remove unneeded local variable in asym_quant()
This commit is contained in:
parent
f21fb76b1b
commit
684f4abfac
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user