This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 7f2b4adeac954ab90ae4961553229687ccfa0697 Author: Jun Zhao <[email protected]> AuthorDate: Mon Sep 28 07:00:19 2026 +0800 Commit: Jun Zhao <[email protected]> CommitDate: Mon Sep 28 01:08:27 2026 +0000 fftools/ffmpeg_enc: ensure subtitle packet pts respects output start_time In do_subtitle_out(), local_sub.pts already subtracts of->start_time when output-side -ss is requested. However, pkt->pts was assigned from sub->pts rather than the adjusted pts variable, causing cue headers to drift across container muxers whenever output seeking was used. Assign pkt->pts from pts so that encoded subtitle packets stay aligned with audio/video streams on the shifted timeline. Signed-off-by: Jun Zhao <[email protected]> --- fftools/ffmpeg_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 4745246410..cf145f13e0 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -525,7 +525,7 @@ static int do_subtitle_out(OutputFile *of, OutputStream *ost, const AVSubtitle * av_shrink_packet(pkt, subtitle_out_size); pkt->time_base = AV_TIME_BASE_Q; - pkt->pts = sub->pts; + pkt->pts = pts; pkt->duration = av_rescale_q(sub->end_display_time, (AVRational){ 1, 1000 }, pkt->time_base); if (enc->codec_id == AV_CODEC_ID_DVB_SUBTITLE) { /* XXX: the pts correction is handled here. Maybe handling -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
