mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-18 20:12:50 +00:00
[PR #1918] [MERGED] fix: Apply --delay option to DVB/bitmap subtitles #2710
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1918
Author: @cfsmp3
Created: 12/28/2025
Status: ✅ Merged
Merged: 12/28/2025
Merged by: @cfsmp3
Base:
master← Head:fix/issue-1248-delay-option-for-dvb-subtitles📝 Commits (1)
a6ccf29fix: Apply --delay option to DVB/bitmap subtitles📊 Changes
1 file changed (+22 additions, -0 deletions)
View changed files
📝
src/lib_ccx/ccx_encoders_common.c(+22 -0)📄 Description
Summary
The
--delayoption was not being applied to DVB and other bitmap-based subtitles (DVD subtitles, etc.), only to CEA-608 subtitles. This made it impossible for users to correct timing offsets in DVB subtitle extraction.Changes
subs_delaytosub->start_timeandsub->end_timeforCC_BITMAPsubtitles inencode_sub(), matching the behavior forCC_608Background
Investigation of issue #1248 revealed that while the original timing offset issue (6600ms too early) in certain DVB streams requires the sample file for root cause analysis, the
--delayoption should have been a viable workaround. However, the delay was never actually applied to bitmap-based subtitles.In
encode_sub()atccx_encoders_common.c:CC_608subtitles:subs_delaywas correctly appliedCC_BITMAPsubtitles:subs_delaywas never appliedTest plan
--delayoption works with DVB subtitlesRelated Issues
Fixes #1248 (provides workaround via
--delay)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.