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 12:09:58 +0200 |
commit | 777bc81a91a476f9e1f81faebfb952b823f13f28 (patch) | |
tree | 1e592611035379da01fc9dd2bf463d1b21f052fb /libavformat | |
parent | 1e9e311e21074575f1ad29fb35ac135197f4b68d (diff) | |
download | ffmpeg-777bc81a91a476f9e1f81faebfb952b823f13f28.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 27d9d06667..4f73dfebef 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1864,7 +1864,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; } |