Commit c76f44be authored by Wim Taymans's avatar Wim Taymans
Browse files

video: fix default colorspace settings

HD content is defined as height > 576
parent 29edc0c6
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment