From f3f08e829da9cb80bd56721700d5dd4865ab2093 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 15 Oct 2012 16:32:25 +0200 Subject: [PATCH] videoconvert: actually copy the palette Copy the default palette in the destination buffer too. --- gst/videoconvert/videoconvert.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/videoconvert/videoconvert.c b/gst/videoconvert/videoconvert.c index 0213e35..f3f7421 100644 --- a/gst/videoconvert/videoconvert.c +++ b/gst/videoconvert/videoconvert.c @@ -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) \ -- 2.7.4