Fixed hot bug with CEA-708 counter

This commit is contained in:
Evgeny 2017-01-13 20:32:29 +03:00
parent 1fb98118c6
commit a727d2df26

View File

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