summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-03-23 12:11:51 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-03-23 12:11:51 +0000
commit7e815047e5621683ab7a91a23c93906cf916ff36 (patch)
treee29a7e5ff4dcfd0e91baf868c5d79ef3e1522bf0 /libavformat
parent5e6a5c4dafab7118e7dbf0374da04ad03c4dfa84 (diff)
use 64bit types
Originally committed as revision 5202 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index a2376d9d5d..fef78f67ff 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -322,7 +322,7 @@ typedef struct MOVContext {
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 @@ av_log(NULL, AV_LOG_DEBUG, "track[%i].stts.entries = %i\n", c->fc->nb_streams-1,
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;
}