style: Fix remaining clang-format indentation issues

This commit is contained in:
Rahul Tripathi
2026-01-16 16:34:26 +05:30
parent f198bcd2ec
commit 84a7a1fb41
3 changed files with 32 additions and 32 deletions

View File

@@ -214,36 +214,36 @@ int start_ccx()
if (!ret)
ret = tmp;
break;
case CCX_SM_MYTH:
mprint("\rAnalyzing data in MythTV mode\n");
show_myth_banner = 1;
tmp = myth_loop(ctx);
if (!ret)
ret = tmp;
break;
case CCX_SM_MYTH:
mprint("\rAnalyzing data in MythTV mode\n");
show_myth_banner = 1;
tmp = myth_loop(ctx);
if (!ret)
ret = tmp;
break;
#ifdef GPAC_AVAILABLE
case CCX_SM_MP4:
mprint("\rAnalyzing data with GPAC (MP4 library)\n");
close_input_file(ctx); // No need to have it open. GPAC will do it for us
if (ctx->current_file == -1) // We don't have a file to open, must be stdin, and GPAC is incompatible with stdin
{
fatal(EXIT_INCOMPATIBLE_PARAMETERS, "MP4 requires an actual file, it's not possible to read from a stream, including stdin.\n");
}
if (ccx_options.extract_chapters)
{
tmp = dumpchapters(ctx, &ctx->mp4_cfg, ctx->inputfile[ctx->current_file]);
}
else
{
tmp = processmp4(ctx, &ctx->mp4_cfg, ctx->inputfile[ctx->current_file]);
}
if (ccx_options.print_file_reports)
print_file_report(ctx);
if (!ret)
ret = tmp;
break;
case CCX_SM_MP4:
mprint("\rAnalyzing data with GPAC (MP4 library)\n");
close_input_file(ctx); // No need to have it open. GPAC will do it for us
if (ctx->current_file == -1) // We don't have a file to open, must be stdin, and GPAC is incompatible with stdin
{
fatal(EXIT_INCOMPATIBLE_PARAMETERS, "MP4 requires an actual file, it's not possible to read from a stream, including stdin.\n");
}
if (ccx_options.extract_chapters)
{
tmp = dumpchapters(ctx, &ctx->mp4_cfg, ctx->inputfile[ctx->current_file]);
}
else
{
tmp = processmp4(ctx, &ctx->mp4_cfg, ctx->inputfile[ctx->current_file]);
}
if (ccx_options.print_file_reports)
print_file_report(ctx);
if (!ret)
ret = tmp;
break;
#endif
case CCX_SM_MKV:
case CCX_SM_MKV:
mprint("\rAnalyzing data in Matroska mode\n");
tmp = matroska_loop(ctx);
if (!ret)

View File

@@ -1411,8 +1411,8 @@ int process_non_multiprogram_general_loop(struct lib_ccx_ctx *ctx,
// Auto-detect offset based on sync byte 0x0F
if (dvb_ptr->len > 2 && dvb_ptr->buffer[2] == 0x0f)
offset = 2;
else if (dvb_ptr->len > 0 && dvb_ptr->buffer[0] == 0x0f)
offset = 0;
else if (dvb_ptr->len > 0 && dvb_ptr->buffer[0] == 0x0f)
offset = 0;
dvbsub_decode(pipe->encoder, pipe->dec_ctx, dvb_ptr->buffer + offset, dvb_ptr->len - offset, &pipe->dec_ctx->dec_sub);
}

View File

@@ -773,8 +773,8 @@ int parse_PAT(struct ccx_demuxer *ctx)
}
memset(ctx->stream_id_of_each_pid, 0, (MAX_PSI_PID + 1) * sizeof(uint8_t));
if (!tlt_config.user_page) // If the user didn't select a page...
tlt_config.page = 0; // ..forget whatever we detected.
if (!tlt_config.user_page) // If the user didn't select a page...
tlt_config.page = 0; // ..forget whatever we detected.
gotpes = 1;
}