ajasink: Remove workaround for NTV SDK bug that is fixed since a while

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6056>
This commit is contained in:
Sebastian Dröge 2024-02-05 17:14:24 +02:00 committed by GStreamer Marge Bot
parent 4949c6d153
commit ddd9dcc559

View file

@ -1779,33 +1779,7 @@ static GstFlowReturn gst_aja_sink_render(GstBaseSink *bsink,
} else {
NTV2_POINTER ptr(item.video_map.data, item.video_map.size);
// Work around bug in GetVANCTransmitData() for SD formats that
// truncates ADF packets that are not a multiple of 12 words long.
//
// See AJA SDK support ticket #4845.
if (format_desc.IsSDFormat()) {
guint32 n_vanc_packets = anc_packet_list.CountAncillaryData();
for (guint32 i = 0; i < n_vanc_packets; i++) {
AJAAncillaryData *packet = anc_packet_list.GetAncillaryDataAtIndex(i);
ULWord line_offset = 0;
if (!format_desc.GetLineOffsetFromSMPTELine(
packet->GetLocationLineNumber(), line_offset))
continue;
UWordSequence data;
if (packet->GenerateTransmitData(data) != AJA_STATUS_SUCCESS)
continue;
// Pad to a multiple of 12 words
while (data.size() < 12 || data.size() % 12 != 0)
data.push_back(0x040);
::YUVComponentsTo10BitYUVPackedBuffer(data, ptr, format_desc,
line_offset);
}
} else {
anc_packet_list.GetVANCTransmitData(ptr, format_desc);
}
anc_packet_list.GetVANCTransmitData(ptr, format_desc);
}
}