diff options
author | Jun Li <junli1026@gmail.com> | 2019-05-09 02:07:56 -0700 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-09-26 06:55:44 +0800 |
commit | c23797bc336c507188a502a5758b24a4595f14ec (patch) | |
tree | 39be0d646253031bd89ef0b42f75bbb671a66683 /libavformat/mov.c | |
parent | dbd3dbb4766126a806e7aeaa3e2dfbc3557f66f9 (diff) |
lavf/mov: Fix timestamp rescale on sidx atom
Fix #5090
Fix the timestamp rescale issue, from sidx timebase to
stream's timebase.
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 1533c35a1d..8e916a28c6 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5020,7 +5020,7 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom) return AVERROR_PATCHWELCOME; } avio_rb32(pb); // sap_flags - timestamp = av_rescale_q(pts, st->time_base, timescale); + timestamp = av_rescale_q(pts, timescale, st->time_base); index = update_frag_index(c, offset); frag_stream_info = get_frag_stream_info(&c->frag_index, index, track_id); |