mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1930] [MERGED] fix: Properly handle ATSC CC in private MPEG-2 streams #2730
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/1930
Author: @cfsmp3
Created: 12/29/2025
Status: ✅ Merged
Merged: 12/29/2025
Merged by: @cfsmp3
Base:
master← Head:fix/private-mpeg2-cc-handling📝 Commits (2)
3365a71fix: Properly handle ATSC CC in private MPEG-2 streams25162fechore: Add build directories to .gitignore📊 Changes
4 files changed (+11 additions, -24 deletions)
View changed files
📝
.gitignore(+2 -0)📝
src/lib_ccx/avc_functions.c(+4 -5)📝
src/lib_ccx/general_loop.c(+1 -5)📝
src/lib_ccx/ts_functions.c(+4 -14)📄 Description
Summary
Changes
1. ATSC CC in private MPEG-2 streams now works
Previously,
CCX_PRIVATE_MPEG2_CCbuffer type was created but never properly implemented. It would dump raw data and return placeholder bytes instead of actually processing the captions.Fix: Both private MPEG-2 streams (0x06) and user-private streams (0x80-0x8F) with ATSC CC codec now return
CCX_PESbuffer type and use the same processing path.2. Debug output no longer floods terminal
Several
dump()calls were usingCCX_DMT_GENERIC_NOTICESwhich is enabled by default, causing binary hex dumps to appear during normal operation.Fix: Changed to appropriate debug-only masks:
avc_functions.c: SEI error dumps →CCX_DMT_VERBOSEgeneral_loop.c: Unrecognized header dumps →CCX_DMT_PARSETest plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.