From 5a8758fdd2b46e2ce33cd8a44bc744dce2e86f5b Mon Sep 17 00:00:00 2001 From: MakarovGCI2018 <44312997+MakarovGCI2018@users.noreply.github.com> Date: Wed, 12 Dec 2018 20:35:56 +0200 Subject: [PATCH] [FIX] Fixed a minor reportng stats bug (#1054) * Fixed a minor bug * Update CHANGES.TXT * Update CHANGES.TXT --- docs/CHANGES.TXT | 1 + src/ccextractor.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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]);