[FIX] Fixed a minor reportng stats bug (#1054)

* Fixed a minor bug

* Update CHANGES.TXT

* Update CHANGES.TXT
This commit is contained in:
MakarovGCI2018 2018-12-12 20:35:56 +02:00 committed by Carlos Fernandez Sanz
parent 7b4bf0b15a
commit 5a8758fdd2
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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]);