From 173f11e73f532a3b9e8b709e28bcad888cee5031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 12 Feb 2019 14:30:13 +0200 Subject: [PATCH] decklinkvideosink: S334 1A CEA608 closed captions have the first bit set for the first field And not for the second field. The logic was inverted here. --- sys/decklink/gstdecklinkvideosink.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp index 817d870dbc..c0196b4383 100644 --- a/sys/decklink/gstdecklinkvideosink.cpp +++ b/sys/decklink/gstdecklinkvideosink.cpp @@ -902,9 +902,8 @@ gst_decklink_video_sink_prepare (GstBaseSink * bsink, GstBuffer * buffer) * have no way of knowning the field here */ for (i = 0; i < n; i++) { - data[3 * i] = - self->info.height == - 525 ? self->caption_line - 9 : self->caption_line - 5; + data[3 * i] = 0x80 | (self->info.height == + 525 ? self->caption_line - 9 : self->caption_line - 5); data[3 * i + 1] = cc_meta->data[2 * i]; data[3 * i + 2] = cc_meta->data[2 * i + 1]; }