[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mov.c,1.91,1.92

Michael Niedermayer CVS michael
Wed Sep 7 00:51:00 CEST 2005


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

Modified Files:
	mov.c 
Log Message:
set time_base as soon as time_scale is known instead of in a unrelated chunck which might be missing


Index: mov.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- mov.c	4 Sep 2005 21:04:25 -0000	1.91
+++ mov.c	6 Sep 2005 22:50:58 -0000	1.92
@@ -640,6 +640,7 @@
     get_be32(pb); /* modification time */
 
     c->streams[c->fc->nb_streams-1]->time_scale = get_be32(pb);
+    av_set_pts_info(c->fc->streams[c->fc->nb_streams-1], 64, 1, c->streams[c->fc->nb_streams-1]->time_scale);
 
 #ifdef DEBUG
     av_log(NULL, AV_LOG_DEBUG, "track[%i].time_scale = %i\n", c->fc->nb_streams-1, c->streams[c->fc->nb_streams-1]->time_scale); /* time scale */
@@ -1345,9 +1346,6 @@
         total_sample_count+=sample_count;
     }
 
-    av_set_pts_info(st, 64, 1, c->streams[c->fc->nb_streams-1]->time_scale);
-//    st->codec->time_base.num = 1;
-//    st->codec->time_base.den = c->streams[c->fc->nb_streams-1]->time_scale;
     st->nb_frames= total_sample_count;
     if(duration)
         st->duration= duration;





More information about the ffmpeg-cvslog mailing list