diff utils.c @ 1557:3879e6def12f libavformat

use standard INT64_MAX instead of MAXINT64 (and MIN)
author mru
date Thu, 07 Dec 2006 00:47:37 +0000
parents 65b7b3ff4ed7
children bef95ed80667
line wrap: on
line diff
--- a/utils.c	Wed Dec 06 23:46:11 2006 +0000
+++ b/utils.c	Thu Dec 07 00:47:37 2006 +0000
@@ -1472,8 +1472,8 @@
     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 @@
             }
         }
     }
-    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 */