properly set streams start_time
authorAurelien Jacobs <aurel@gnuage.org>
Mon, 9 Apr 2007 16:27:00 +0000 (16:27 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Mon, 9 Apr 2007 16:27:00 +0000 (16:27 +0000)
Originally committed as revision 8693 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/matroska.c

index 867a2a3..97b4979 100644 (file)
@@ -2301,6 +2301,7 @@ matroska_read_header (AVFormatContext    *s,
             av_set_pts_info(st, 64, matroska->time_scale, 1000*1000*1000); /* 64 bit pts in ns */
 
             st->codec->codec_id = codec_id;
+            st->start_time = 0;
 
             if (track->default_duration)
                 av_reduce(&st->codec->time_base.num, &st->codec->time_base.den,