diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-09-04 08:55:08 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-09-07 11:52:40 +0200 |
commit | 26f027fba1c5ab482fa2488fbe0fa36c8bb33b69 (patch) | |
tree | 064cbeddc008c467c7271f599220d20bf0345012 | |
parent | 7ee191cab0dc44700f26c5784e2adeb6a779651b (diff) | |
download | ffmpeg-26f027fba1c5ab482fa2488fbe0fa36c8bb33b69.tar.gz |
lavf: fix the comparison in an overflow check
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 3644bcd724..3065c71ba4 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1758,7 +1758,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic) for(i=0;i<ic->nb_streams;i++) { st = ic->streams[i]; 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; break; } |