summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-06-01 14:41:53 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-06-01 14:41:53 +0000
commit934b910ba0d06eca9135455ccf835c62e0ba596c (patch)
tree381c1b1dbf6b6f474718334c10a83d94bd4ff461 /libavformat/matroskadec.c
parent7ff97085853ff8eb596eace6408cc657d02958c9 (diff)
matroskadec: use the proper timestamp scaling for index entries
Originally committed as revision 13602 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index cff5d67697..94249111f2 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2692,7 +2692,7 @@ matroska_read_header (AVFormatContext *s,
stream = matroska->tracks[track]->stream_index;
if (stream >= 0 && stream < matroska->ctx->nb_streams)
av_add_index_entry(matroska->ctx->streams[stream],
- idx->pos, idx->time/matroska->time_scale,
+ idx->pos, idx->time/AV_TIME_BASE,
0, 0, AVINDEX_KEYFRAME);
}
}