lavf: fix the comparison in an overflow check
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 26f027fba1
)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:

committed by
Luca Barbato

parent
1e9e311e21
commit
777bc81a91
@@ -1864,7 +1864,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic)
|
|||||||
for(i=0;i<ic->nb_streams;i++) {
|
for(i=0;i<ic->nb_streams;i++) {
|
||||||
st = ic->streams[i];
|
st = ic->streams[i];
|
||||||
if (st->codec->bit_rate > 0) {
|
if (st->codec->bit_rate > 0) {
|
||||||
if (INT_MAX - st->codec->bit_rate > bit_rate) {
|
if (INT_MAX - st->codec->bit_rate < bit_rate) {
|
||||||
bit_rate = 0;
|
bit_rate = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user