diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-08-02 09:48:08 +0400 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-08-03 09:07:07 +0400 |
commit | 8772d2511a4ac45f275eaef2b4b6b1ef132c993b (patch) | |
tree | be2b784e2abbd6659898d9aa65efb4ec1d080724 /libavcodec | |
parent | 7f92db14f94eed184a4fa725436d0ed44f4327ae (diff) |
g723_1: fix off-by-one error in normalize_bits()
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/g723_1.c | 2 |
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; } /** |