mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
video-info: encoded format can have RGB color-matrix (Fixes #1435)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1435>
This commit is contained in:
parent
c60ac7a04b
commit
cabff7a20f
1 changed files with 3 additions and 2 deletions
|
@ -186,8 +186,9 @@ validate_colorimetry (GstVideoInfo * info)
|
||||||
{
|
{
|
||||||
const GstVideoFormatInfo *finfo = info->finfo;
|
const GstVideoFormatInfo *finfo = info->finfo;
|
||||||
|
|
||||||
if (!GST_VIDEO_FORMAT_INFO_IS_RGB (finfo) &&
|
if ((GST_VIDEO_FORMAT_INFO_IS_YUV (finfo)
|
||||||
info->colorimetry.matrix == GST_VIDEO_COLOR_MATRIX_RGB) {
|
|| GST_VIDEO_FORMAT_INFO_IS_GRAY (finfo))
|
||||||
|
&& info->colorimetry.matrix == GST_VIDEO_COLOR_MATRIX_RGB) {
|
||||||
GST_WARNING
|
GST_WARNING
|
||||||
("color matrix RGB is only supported with RGB format, %s is not",
|
("color matrix RGB is only supported with RGB format, %s is not",
|
||||||
finfo->name);
|
finfo->name);
|
||||||
|
|
Loading…
Reference in a new issue