aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2012-08-02 07:48:08 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-08-03 07:07:07 +0200
commit8772d2511a4ac45f275eaef2b4b6b1ef132c993b (patch)
treebe2b784e2abbd6659898d9aa65efb4ec1d080724
parent7f92db14f94eed184a4fa725436d0ed44f4327ae (diff)
downloadffmpeg-8772d2511a4ac45f275eaef2b4b6b1ef132c993b.tar.gz
g723_1: fix off-by-one error in normalize_bits()
-rw-r--r--libavcodec/g723_1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 11e90e8123..91f1b86170 100644
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -274,7 +274,7 @@ static int normalize_bits(int num, int width)
if (num < 0)
num = ~num;
- return width - av_log2(num);
+ return width - av_log2(num) - 1;
}
/**