[PR #1891] Fix infinite binary output when processing .ts files with no subtitles #2682

Open
opened 2026-01-29 17:23:24 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1891

State: closed
Merged: No


Problem
When CCExtractor processes a .ts file that contains no subtitles, it produces infinite binary/hex-like output in the terminal instead of stopping gracefully.

Solution
Removed the dump() call in copy_capbuf_demux_data() for CCX_PRIVATE_MPEG2_CC buffer type. This dump was using CCX_DMT_GENERIC_NOTICES which is enabled by default, causing continuous binary output to the terminal.

Changes

  • Removed dump(CCX_DMT_GENERIC_NOTICES, ...) call from copy_capbuf_demux_data() function
  • Added explanatory comment about why the dump was removed
  • Function still processes data correctly, just without the debug output

Testing

  • Verified that the problematic dump call is removed
  • Code still handles CCX_PRIVATE_MPEG2_CC buffer type correctly
  • No infinite binary output when processing TS files with no subtitles

Fixes #1754

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/1891 **State:** closed **Merged:** No --- Problem When CCExtractor processes a .ts file that contains no subtitles, it produces infinite binary/hex-like output in the terminal instead of stopping gracefully. Solution Removed the `dump()` call in `copy_capbuf_demux_data()` for `CCX_PRIVATE_MPEG2_CC` buffer type. This dump was using `CCX_DMT_GENERIC_NOTICES` which is enabled by default, causing continuous binary output to the terminal. Changes - Removed `dump(CCX_DMT_GENERIC_NOTICES, ...)` call from `copy_capbuf_demux_data()` function - Added explanatory comment about why the dump was removed - Function still processes data correctly, just without the debug output Testing - Verified that the problematic dump call is removed - Code still handles `CCX_PRIVATE_MPEG2_CC` buffer type correctly - No infinite binary output when processing TS files with no subtitles Fixes #1754
claunia added the pull-request label 2026-01-29 17:23:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2682