From 64f8435b49f1b431de022919226f5b5ffbb4b6df Mon Sep 17 00:00:00 2001 From: tusharbhatt7 Date: Wed, 24 Dec 2025 23:44:17 +0530 Subject: [PATCH] Fix infinite binary output when processing .ts files with no subtitles Remove dump() call in copy_capbuf_demux_data() for CCX_PRIVATE_MPEG2_CC buffer type that was causing infinite binary/hex output to terminal when processing TS files containing no subtitles. The dump() function used CCX_DMT_GENERIC_NOTICES which is enabled by default. Fixes #1754 --- src/lib_ccx/ts_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_ccx/ts_functions.c b/src/lib_ccx/ts_functions.c index 44a199260..3778f0f54 100644 --- a/src/lib_ccx/ts_functions.c +++ b/src/lib_ccx/ts_functions.c @@ -569,8 +569,8 @@ int copy_capbuf_demux_data(struct ccx_demuxer *ctx, struct demuxer_data **data, if (ptr->bufferdatatype == CCX_PRIVATE_MPEG2_CC) { - dump(CCX_DMT_GENERIC_NOTICES, cinfo->capbuf, cinfo->capbuflen, 0, 1); // Bogus data, so we return something + // Removed dump() call to prevent infinite binary output when processing files with no subtitles ptr->buffer[ptr->len++] = 0xFA; ptr->buffer[ptr->len++] = 0x80; ptr->buffer[ptr->len++] = 0x80;