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.
This commit is contained in:
Sebastian Dröge 2019-02-12 14:30:13 +02:00
parent 028338ff44
commit 173f11e73f

View 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];
}