From a727d2df264fb467c452bd76369cbfacf65f398f Mon Sep 17 00:00:00 2001 From: Evgeny Date: Fri, 13 Jan 2017 20:32:29 +0300 Subject: [PATCH] Fixed hot bug with CEA-708 counter --- src/lib_ccx/ccx_decoders_708_output.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib_ccx/ccx_decoders_708_output.c b/src/lib_ccx/ccx_decoders_708_output.c index c41ecd71..a74e3753 100644 --- a/src/lib_ccx/ccx_decoders_708_output.c +++ b/src/lib_ccx/ccx_decoders_708_output.c @@ -19,10 +19,12 @@ int _dtvcc_is_screen_empty(dtvcc_tv_screen *tv, struct encoder_ctx *encoder) for (int i = 0; i < CCX_DTVCC_SCREENGRID_ROWS; i++) { if (!_dtvcc_is_row_empty(tv, i)) + { + // we will write subtitle + encoder->cea_708_counter++; return 0; + } } - // we will write subtitle - encoder->cea_708_counter++; return 1; }