mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1870] fix(708): Handle null timing pointer in CEA-708 settings conversion #2646
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1870
State: closed
Merged: Yes
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