diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-09-04 08:55:08 +0200 |
---|---|---|
committer | Sean McGovern <gseanmcg@gmail.com> | 2013-09-23 19:54:13 -0400 |
commit | 9978c24abfbbde6d5db80bf8e6ff9b525ef8c42d (patch) | |
tree | 1f6220f1ad5d409f2b6531cc18e1238142f7fe38 /libavformat | |
parent | b0ca5fef09d1b1268ea0c8f89bf53cd38aaa85e7 (diff) | |
download | ffmpeg-9978c24abfbbde6d5db80bf8e6ff9b525ef8c42d.tar.gz |
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 26f027fba1c5ab482fa2488fbe0fa36c8bb33b69)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat')
-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 e31c5799e7..7065b2f004 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1954,7 +1954,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; } |