From 8396e16f851c0c9b9ccb6979f35485f48886cccd Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 2 Jun 2020 18:07:10 +1000 Subject: [PATCH] ccconverter: signal cea608 padding as invalid Outputting a valid but null cea608 byte pair may cause some issues with some checksum packets. Part-of: --- ext/closedcaption/gstccconverter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/closedcaption/gstccconverter.c b/ext/closedcaption/gstccconverter.c index a9da170f93..c3630176aa 100644 --- a/ext/closedcaption/gstccconverter.c +++ b/ext/closedcaption/gstccconverter.c @@ -730,7 +730,7 @@ combine_cc_data (GstCCConverter * self, gboolean pad_cea608, cea608_1_i++; i++; } else if (cea608_1_i < total_cea608_1_count) { - out[out_i++] = 0xfc; + out[out_i++] = 0xf8; out[out_i++] = 0x80; out[out_i++] = 0x80; cea608_1_i++; @@ -744,7 +744,7 @@ combine_cc_data (GstCCConverter * self, gboolean pad_cea608, cea608_2_i++; i++; } else if (cea608_2_i < total_cea608_2_count) { - out[out_i++] = 0xfd; + out[out_i++] = 0xf9; out[out_i++] = 0x80; out[out_i++] = 0x80; cea608_2_i++;