[FFmpeg-cvslog] r14984 - trunk/libavformat/matroskadec.c
aurel
subversion
Tue Aug 26 22:32:27 CEST 2008
Author: aurel
Date: Tue Aug 26 22:32:27 2008
New Revision: 14984
Log:
matroskadec: index timestamps are supposed to be in the timebase of the stream
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c (original)
+++ trunk/libavformat/matroskadec.c Tue Aug 26 22:32:27 2008
@@ -1337,8 +1337,7 @@ static int matroska_read_header(AVFormat
if (track && track->stream)
av_add_index_entry(track->stream,
pos[j].pos + matroska->segment_start,
- index[i].time*matroska->time_scale/AV_TIME_BASE,
- 0, 0, AVINDEX_KEYFRAME);
+ index[i].time, 0, 0, AVINDEX_KEYFRAME);
}
}
@@ -1627,8 +1626,7 @@ static int matroska_parse_cluster(Matros
}
if (key_frame)
av_add_index_entry(matroska->vstream, pos,
- cluster.timecode*matroska->time_scale/AV_TIME_BASE,
- 0, 0, AVINDEX_KEYFRAME);
+ cluster.timecode, 0, 0, AVINDEX_KEYFRAME);
ebml_free(matroska_cluster, &cluster);
if (res < 0) matroska->done = 1;
return res;
More information about the ffmpeg-cvslog
mailing list