Mercurial > libavformat.hg
changeset 3782:b0ab5575a1bc libavformat
matroskadec: index timestamps are supposed to be in the timebase of the stream
author | aurel |
---|---|
date | Tue, 26 Aug 2008 20:32:27 +0000 |
parents | b7bd38b16272 |
children | db75e26da599 |
files | matroskadec.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Tue Aug 26 20:21:39 2008 +0000 +++ b/matroskadec.c Tue Aug 26 20:32:27 2008 +0000 @@ -1337,8 +1337,7 @@ 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 @@ } 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;