mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1891] Fix infinite binary output when processing .ts files with no subtitles #2682
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/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 incopy_capbuf_demux_data()forCCX_PRIVATE_MPEG2_CCbuffer type. This dump was usingCCX_DMT_GENERIC_NOTICESwhich is enabled by default, causing continuous binary output to the terminal.Changes
dump(CCX_DMT_GENERIC_NOTICES, ...)call fromcopy_capbuf_demux_data()functionTesting
CCX_PRIVATE_MPEG2_CCbuffer type correctlyFixes #1754