[FFmpeg-cvslog] aacdec: fix typo in scalefactor clipping check
Justin Ruggles
git at videolan.org
Tue May 24 04:35:37 CEST 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon May 23 15:56:52 2011 -0400| [cef7d70181ec7ee9df426ef0f3a08dd4995a4d9a] | committer: Justin Ruggles
aacdec: fix typo in scalefactor clipping check
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cef7d70181ec7ee9df426ef0f3a08dd4995a4d9a
---
libavcodec/aacdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index fbb3582..69aacb8 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -820,7 +820,7 @@ static int decode_scalefactors(AACContext *ac, float sf[120], GetBitContext *gb,
else
offset[1] += get_vlc2(gb, vlc_scalefactors.table, 7, 3) - 60;
clipped_offset = av_clip(offset[1], -100, 155);
- if (offset[2] != clipped_offset) {
+ if (offset[1] != clipped_offset) {
av_log_ask_for_sample(ac->avctx, "Noise gain clipped "
"(%d -> %d).\nIf you heard an audible "
"artifact, there may be a bug in the decoder. ",
More information about the ffmpeg-cvslog
mailing list