mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-11-19 03:33:50 +03:00
g723_1: fix off-by-one error in normalize_bits()
This commit is contained in:
1 parent
7f92db14f9
commit
8772d2511a
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user