videoconvert: actually copy the palette

Copy the default palette in the destination buffer too.
This commit is contained in:
Wim Taymans 2012-10-15 16:32:25 +02:00
parent 98332bda81
commit f3f08e829d

View file

@ -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) \