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; }