diff --git a/docs/CHANGES.TXT b/docs/CHANGES.TXT index 5a1d6aa9..cb32ab54 100644 --- a/docs/CHANGES.TXT +++ b/docs/CHANGES.TXT @@ -5,6 +5,7 @@ - Fix: Update UTF8Proc to 2.2.0 - Fix: Warn instead of fatal when a 0xFF marker is missing - Fix: Segfault in general_loop.c due to null pointer dereference (case of no encoder) +- Fix: Enable printing hdtv stats to console. - Fix: Many typos in comments and output messages - Fix: Ignore Visual Studio temporary project files diff --git a/src/ccextractor.c b/src/ccextractor.c index 40eadeed..35762807 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -282,7 +282,7 @@ int api_start(struct ccx_s_options api_options) total_frames_count, current_fps); } - if (ctx->stat_hdtv) + if (dec_ctx->stat_hdtv) { mprint ("\rCC type 0: %d (%s)\n", dec_ctx->cc_stats[0], cc_types[0]); mprint ("CC type 1: %d (%s)\n", dec_ctx->cc_stats[1], cc_types[1]);