Commit 173f11e7 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

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.
parent 028338ff
......@@ -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];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment