CCExtractor / CCExtractor/ccextractor

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

Open
#2,278 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
903
Forks
589
Avg merge
3d 2h
Merged PRs (30d)
10

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.