ccconverter: signal cea608 padding as invalid

Outputting a valid but null cea608 byte pair may cause some issues with
some checksum packets.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1318>
This commit is contained in:
Matthew Waters 2020-06-02 18:07:10 +10:00 committed by GStreamer Merge Bot
parent bfd03537f0
commit 8396e16f85

View file

@ -730,7 +730,7 @@ combine_cc_data (GstCCConverter * self, gboolean pad_cea608,
cea608_1_i++; cea608_1_i++;
i++; i++;
} else if (cea608_1_i < total_cea608_1_count) { } 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;
out[out_i++] = 0x80; out[out_i++] = 0x80;
cea608_1_i++; cea608_1_i++;
@ -744,7 +744,7 @@ combine_cc_data (GstCCConverter * self, gboolean pad_cea608,
cea608_2_i++; cea608_2_i++;
i++; i++;
} else if (cea608_2_i < total_cea608_2_count) { } 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;
out[out_i++] = 0x80; out[out_i++] = 0x80;
cea608_2_i++; cea608_2_i++;