guint8 *pLine = (guint8 *) &(src[src_row * y]);
for (i = 0; i < src_row; i++)
data[y * stride_row + i] = pLine[i];
-
+ guint8 stride_row_color = pLine[i - 1];
for (i = src_row; i < stride_row; i++)
- data[y * stride_row + i] = 0x00;
+ data[y * stride_row + i] = stride_row_color;
}
for (y = (unsigned int)(input_format->height); y < (unsigned int)(input_format->elevation); y++) {
for (i = 0; i < stride_row; i++)
- data[y * stride_row + i] = 0x00;
+ data[y * stride_row + i] = data[(y - 1) * stride_row + i];
}
gst_buf = gst_buffer_new_wrapped_full(GST_MEMORY_FLAG_READONLY, data, src_size, 0, src_size, data, _mm_destroy_notify);