mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-04 05:43:16 +00:00
lavf/mov: Fix timestamp rescale on sidx atom
Fix #5090 Fix the timestamp rescale issue, from sidx timebase to stream's timebase.
This commit is contained in:
parent
dbd3dbb476
commit
c23797bc33
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user