1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-07 08:30:10 +02:00

g723_1: fix off-by-one error in normalize_bits()

This commit is contained in:
Kostya Shishkov 2012-08-02 07:48:08 +02:00
parent 7f92db14f9
commit 8772d2511a

View File

@ -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;
}
/**