aboutsummaryrefslogtreecommitdiffstats
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 12:09:58 +0200
commit777bc81a91a476f9e1f81faebfb952b823f13f28 (patch)
tree1e592611035379da01fc9dd2bf463d1b21f052fb /libavformat
parent1e9e311e21074575f1ad29fb35ac135197f4b68d (diff)
downloadffmpeg-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.c2
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;
}