decklinkvideosink: S334 1A CEA608 closed captions have the first bit set for the...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 12 Feb 2019 12:30:13 +0000 (14:30 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 12 Feb 2019 12:38:40 +0000 (14:38 +0200)
And not for the second field. The logic was inverted here.

sys/decklink/gstdecklinkvideosink.cpp

index 817d870dbc5eb9793ec4ead0284dd0f9a6dabf67..c0196b43839d2d85c2a16f00cc847e7418436712 100644 (file)
@@ -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];
           }