Commit 934b910b authored by Aurelien Jacobs's avatar Aurelien Jacobs

matroskadec: use the proper timestamp scaling for index entries

Originally committed as revision 13602 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7ff97085
...@@ -2692,7 +2692,7 @@ matroska_read_header (AVFormatContext *s, ...@@ -2692,7 +2692,7 @@ matroska_read_header (AVFormatContext *s,
stream = matroska->tracks[track]->stream_index; stream = matroska->tracks[track]->stream_index;
if (stream >= 0 && stream < matroska->ctx->nb_streams) if (stream >= 0 && stream < matroska->ctx->nb_streams)
av_add_index_entry(matroska->ctx->streams[stream], 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); 0, 0, AVINDEX_KEYFRAME);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment