mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
video: fix default colorspace settings
HD content is defined as height > 576
This commit is contained in:
parent
29edc0c6a5
commit
c76f44bebb
1 changed files with 3 additions and 3 deletions
|
@ -1923,10 +1923,10 @@ gst_video_info_set_format (GstVideoInfo * info, GstVideoFormat format,
|
|||
info->height = height;
|
||||
|
||||
if (GST_VIDEO_FORMAT_INFO_IS_YUV (finfo)) {
|
||||
if (width > 720)
|
||||
info->colorimetry = colorimetry[DEFAULT_YUV_SD].color;
|
||||
else
|
||||
if (height > 576)
|
||||
info->colorimetry = colorimetry[DEFAULT_YUV_HD].color;
|
||||
else
|
||||
info->colorimetry = colorimetry[DEFAULT_YUV_SD].color;
|
||||
} else if (GST_VIDEO_FORMAT_INFO_IS_GRAY (finfo)) {
|
||||
info->colorimetry = colorimetry[DEFAULT_GRAY].color;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue