We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25a5fcb commit ca55c86Copy full SHA for ca55c86
1 file changed
src/lib_ccx/params_dump.c
@@ -565,8 +565,10 @@ void print_file_report(struct lib_ccx_ctx *ctx)
565
struct lib_cc_decode *dec_ctx = NULL;
566
struct ccx_demuxer *demux_ctx = ctx->demux_ctx;
567
const char *report_fmt = ccx_options.report_format;
568
+ int is_json = 0;
569
if (report_fmt && strcasecmp(report_fmt, "json") == 0)
570
{
571
+ is_json = 1;
572
print_file_report_json(ctx);
573
goto cleanup;
574
}
@@ -733,7 +735,10 @@ void print_file_report(struct lib_ccx_ctx *ctx)
733
735
734
736
737
cleanup:
- freep(&ctx->freport.data_from_608);
- memset(&ctx->freport, 0, sizeof(struct file_report));
738
+ if (is_json)
739
+ {
740
+ freep(&ctx->freport.data_from_608);
741
+ memset(&ctx->freport, 0, sizeof(struct file_report));
742
+ }
743
#undef Y_N
744
0 commit comments