Commit 1fa61af8 authored by aurel's avatar aurel

matroskadec: use the proper timestamp scaling for index entries

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13602 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ea073a0e
...@@ -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