mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1870] [MERGED] fix(708): Handle null timing pointer in CEA-708 settings conversion #2642
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/1870
Author: @cfsmp3
Created: 12/20/2025
Status: ✅ Merged
Merged: 12/21/2025
Merged by: @cfsmp3
Base:
master← Head:fix/cea708-null-timing-pointer📝 Commits (1)
8f78a8bfix(708): Handle null timing pointer in CEA-708 settings conversion📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
src/rust/src/ctorust.rs(+8 -2)📄 Description
Summary
--serviceoption is specifiedfrom_ctype()conversionenabled,services_enabled) from being reset to defaultsProblem
When converting CEA-708 decoder settings from C to Rust via
from_ctype(), a null timing pointer caused the entire conversion to fail and returnNone. This triggered theunwrap_or(default())fallback, resetting:enabledfromtruetofalseactive_services_countfrom1to0This caused CEA-708 captions to not be extracted (exit code 10) even when
--service 1was specified.Root Cause
In
src/rust/src/ctorust.rs, the?operator on timing conversion propagatedNonewhen timing was null:Fix
Handle null timing pointer gracefully:
Test plan
--service 1🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.