mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
avformat/mov: fix skip_samples when sample_rate and time_base do not match
Fixes #21076.
This commit is contained in:
committed by
James Almer
parent
b66c314c4b
commit
afcde6551c
@@ -4759,7 +4759,8 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
|
||||
|
||||
if (!multiple_edits && !mov->advanced_editlist &&
|
||||
st->codecpar->codec_id == AV_CODEC_ID_AAC && start_time > 0)
|
||||
sc->start_pad = start_time;
|
||||
sc->start_pad = av_rescale_q(start_time, st->time_base,
|
||||
(AVRational){1, st->codecpar->sample_rate});
|
||||
}
|
||||
|
||||
/* only use old uncompressed audio chunk demuxing when stts specifies it */
|
||||
|
||||
Reference in New Issue
Block a user