mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
videoconvert: actually copy the palette
Copy the default palette in the destination buffer too.
This commit is contained in:
parent
98332bda81
commit
f3f08e829d
1 changed files with 3 additions and 0 deletions
|
@ -440,6 +440,9 @@ videoconvert_convert_generic (VideoConvert * convert, GstVideoFrame * dest,
|
||||||
PACK_FRAME (dest, convert->tmpline, j, width);
|
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) \
|
#define FRAME_GET_PLANE_STRIDE(frame, plane) \
|
||||||
|
|
Loading…
Reference in a new issue