diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-26 20:32:27 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-26 20:32:27 +0000 |
commit | 8e44312d3f64bc299e8cf9f87de74ea8ccf110a2 (patch) | |
tree | 9fec5bbc53aef8168ef8e894f5fc5dbb06186c9c /libavformat/matroskadec.c | |
parent | 2a242f45148f4d784ca47b0145408e36102c3dd0 (diff) | |
download | ffmpeg-8e44312d3f64bc299e8cf9f87de74ea8ccf110a2.tar.gz |
matroskadec: index timestamps are supposed to be in the timebase of the stream
Originally committed as revision 14984 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 19dde9d414..f994e4884b 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1337,8 +1337,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) 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(MatroskaDemuxContext *matroska) } 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; |