From f27a726809bf8e5e1fa24638bbd6e04afa1fcd36 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Thu, 7 Dec 2006 00:47:37 +0000 Subject: use standard INT64_MAX instead of MAXINT64 (and MIN) Originally committed as revision 7241 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavformat/utils.c') diff --git a/libavformat/utils.c b/libavformat/utils.c index 55ed07414d..4c07a5389c 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1472,8 +1472,8 @@ static void av_update_stream_timings(AVFormatContext *ic) int i; AVStream *st; - start_time = MAXINT64; - end_time = MININT64; + start_time = INT64_MAX; + end_time = INT64_MIN; for(i = 0;i < ic->nb_streams; i++) { st = ic->streams[i]; if (st->start_time != AV_NOPTS_VALUE) { @@ -1488,9 +1488,9 @@ static void av_update_stream_timings(AVFormatContext *ic) } } } - if (start_time != MAXINT64) { + if (start_time != INT64_MAX) { ic->start_time = start_time; - if (end_time != MININT64) { + if (end_time != INT64_MIN) { ic->duration = end_time - start_time; if (ic->file_size > 0) { /* compute the bit rate */ -- cgit v1.2.3