mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
028338ff44
commit
173f11e73f
1 changed files with 2 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue