Skip to content

[BUG] Rust panic in CEA-708 decoder at service_decoder.rs:264 on broadcast MPEG-2 transport streams #2278

@cuylerotsuka

Description

@cuylerotsuka

Environment:

CCExtractor 0.96.5 / 0.96.6 (Homebrew, macOS arm64)
macOS 15.7.7 (Sequoia), Apple Silicon
Input: MPEG-2 transport stream captured from ATSC 1.0 OTA broadcast (1920×1080i 29.97, CEA-708)

Description:
CCExtractor consistently panics at approximately 91% through processing certain broadcast MPEG-2 files with the following error:
thread '' panicked at src/decoder/service_decoder.rs:264:40:
index out of bounds: the len is 0 but the index is 0
The panic occurs in _ccxr_process_cc_data → _process_hdcc → ccx_rust::es::pic::read_pic_info. The -noru flag does not prevent the crash, suggesting the Rust decoder is invoked regardless.
Impact:
The SRT output is truncated — approximately the last 9% of captions are lost. The process exits with a non-zero return code.
Workaround:
None known. The output SRT before the crash is usable but incomplete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions