Justin Ruggles <[email protected]> writes: > --- > libavcodec/ac3enc.c | 12 ++++++------ > 1 files changed, 6 insertions(+), 6 deletions(-) > > > diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c > index db45c83..1f7d05e 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; > }
OK -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
