Fill VANC area with black instead of zeroes when outputting TALL frames

This commit is contained in:
Sebastian Dröge 2021-03-05 13:41:22 +02:00
parent b64c7f3fdc
commit bdddb634f7

View file

@ -1041,7 +1041,10 @@ static GstFlowReturn gst_aja_sink_render(GstBaseSink *bsink,
format_desc.RasterLineToByteOffset(format_desc.GetFirstActiveLine());
guint size = format_desc.GetVisibleRasterBytes();
if (offset != 0) memset(item.video_map.data, 0, offset);
if (offset != 0)
::SetRasterLinesBlack(::NTV2_FBF_10BIT_YCBCR, item.video_map.data,
format_desc.GetBytesPerRow(),
format_desc.GetFirstActiveLine());
memcpy(item.video_map.data + offset,
GST_VIDEO_FRAME_PLANE_DATA(&in_frame, 0), size);