changeset 2026:2e2c2dbb511d libavformat

use INT64_MAX
author bcoudurier
date Sat, 21 Apr 2007 18:01:47 +0000
parents 9a8908eaa2ea
children f42fec0331d5
files mov.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Fri Apr 20 23:45:53 2007 +0000
+++ b/mov.c	Sat Apr 21 18:01:47 2007 +0000
@@ -223,7 +223,7 @@
     a.offset = atom.offset;
 
     if (atom.size < 0)
-        atom.size = 0x7fffffffffffffffLL;
+        atom.size = INT64_MAX;
     while(((total_size + 8) < atom.size) && !url_feof(pb) && !err) {
         a.size = atom.size;
         a.type=0L;
@@ -1482,7 +1482,7 @@
     if(!url_is_streamed(pb)) /* .mov and .mp4 aren't streamable anyway (only progressive download if moov is before mdat) */
         atom.size = url_fsize(pb);
     else
-        atom.size = 0x7FFFFFFFFFFFFFFFLL;
+        atom.size = INT64_MAX;
 
     /* check MOV header */
     err = mov_read_default(mov, pb, atom);