Commit f3f08e82 authored by Wim Taymans's avatar Wim Taymans

videoconvert: actually copy the palette

Copy the default palette in the destination buffer too.
parent 98332bda
......@@ -440,6 +440,9 @@ videoconvert_convert_generic (VideoConvert * convert, GstVideoFrame * dest,
PACK_FRAME (dest, convert->tmpline, j, width);
}
}
if (GST_VIDEO_FRAME_FORMAT (dest) == GST_VIDEO_FORMAT_RGB8P) {
memcpy (GST_VIDEO_FRAME_PLANE_DATA (dest, 1), convert->palette, 256 * 4);
}
}
#define FRAME_GET_PLANE_STRIDE(frame, plane) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment