mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
feat: Add functions for dumping CCExtractor parameters and generating file reports, including JSON output.
This commit is contained in:
@@ -429,8 +429,16 @@ void print_file_report_json(struct lib_ccx_ctx *ctx)
|
||||
int is_dvb = 0, is_tlt = 0;
|
||||
for (int k = 0; k < SUB_STREAMS_CNT; k++)
|
||||
{
|
||||
if (demux->freport.dvb_sub_pid[k] == (unsigned)pid) { is_dvb = 1; break; }
|
||||
if (demux->freport.tlt_sub_pid[k] == (unsigned)pid) { is_tlt = 1; break; }
|
||||
if (demux->freport.dvb_sub_pid[k] == (unsigned)pid)
|
||||
{
|
||||
is_dvb = 1;
|
||||
break;
|
||||
}
|
||||
if (demux->freport.tlt_sub_pid[k] == (unsigned)pid)
|
||||
{
|
||||
is_tlt = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (is_dvb)
|
||||
printf(", \"type\": \"dvb_subtitle\"");
|
||||
|
||||
Reference in New Issue
Block a user