summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-09-04 08:55:08 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-09-07 11:52:40 +0200
commit26f027fba1c5ab482fa2488fbe0fa36c8bb33b69 (patch)
tree064cbeddc008c467c7271f599220d20bf0345012 /libavformat
parent7ee191cab0dc44700f26c5784e2adeb6a779651b (diff)
downloadffmpeg-streaming-26f027fba1c5ab482fa2488fbe0fa36c8bb33b69.zip
ffmpeg-streaming-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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 3644bcd..3065c71 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;
}
OpenPOWER on IntegriCloud