[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mov.c,1.130,1.131

Baptiste Coudurier CVS bcoudurier
Thu Mar 23 13:11:53 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv25237/libavformat

Modified Files:
	mov.c 
Log Message:
use 64bit types

Index: mov.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -d -r1.130 -r1.131
--- mov.c	22 Mar 2006 10:56:51 -0000	1.130
+++ mov.c	23 Mar 2006 12:11:51 -0000	1.131
@@ -322,7 +322,7 @@
     int mp4; /* set to 1 as soon as we are sure that the file is an .mp4 file (even some header parsing depends on this) */
     AVFormatContext *fc;
     int time_scale;
-    int duration; /* duration of the longest track */
+    int64_t duration; /* duration of the longest track */
     int found_moov; /* when both 'moov' and 'mdat' sections has been found */
     int found_mdat; /* we suppose we have enough data to read the file */
     int64_t mdat_size;
@@ -1282,7 +1282,7 @@
 
         dprintf("sample_count=%d, sample_duration=%d\n",sample_count,sample_duration);
 
-        duration+=sample_duration*sample_count;
+        duration+=(int64_t)sample_duration*sample_count;
         total_sample_count+=sample_count;
     }
 





More information about the ffmpeg-cvslog mailing list