You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
g723_1: fix off-by-one error in normalize_bits()
This commit is contained in:
@ -274,7 +274,7 @@ static int normalize_bits(int num, int width)
|
|||||||
if (num < 0)
|
if (num < 0)
|
||||||
num = ~num;
|
num = ~num;
|
||||||
|
|
||||||
return width - av_log2(num);
|
return width - av_log2(num) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user