mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
matroskadec: use the proper timestamp scaling for index entries
Originally committed as revision 13602 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7ff9708585
commit
934b910ba0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user