video: fix default colorspace settings
HD content is defined as height > 576
This commit is contained in:
parent
29edc0c6a5
commit
c76f44bebb
@ -1923,10 +1923,10 @@ gst_video_info_set_format (GstVideoInfo * info, GstVideoFormat format,
|
|||||||
info->height = height;
|
info->height = height;
|
||||||
|
|
||||||
if (GST_VIDEO_FORMAT_INFO_IS_YUV (finfo)) {
|
if (GST_VIDEO_FORMAT_INFO_IS_YUV (finfo)) {
|
||||||
if (width > 720)
|
if (height > 576)
|
||||||
info->colorimetry = colorimetry[DEFAULT_YUV_SD].color;
|
|
||||||
else
|
|
||||||
info->colorimetry = colorimetry[DEFAULT_YUV_HD].color;
|
info->colorimetry = colorimetry[DEFAULT_YUV_HD].color;
|
||||||
|
else
|
||||||
|
info->colorimetry = colorimetry[DEFAULT_YUV_SD].color;
|
||||||
} else if (GST_VIDEO_FORMAT_INFO_IS_GRAY (finfo)) {
|
} else if (GST_VIDEO_FORMAT_INFO_IS_GRAY (finfo)) {
|
||||||
info->colorimetry = colorimetry[DEFAULT_GRAY].color;
|
info->colorimetry = colorimetry[DEFAULT_GRAY].color;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user