diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-06-04 14:51:41 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-06-04 16:17:32 +0200 |
commit | c76f44bebb2ddfc3590de8c84378e128e9748d03 (patch) | |
tree | d63d8bf404db6fd9e45b69486d8a9eea25ca1080 | |
parent | 29edc0c6a558b73e13676410f178db36d4c90beb (diff) |
video: fix default colorspace settings
HD content is defined as height > 576
-rw-r--r-- | gst-libs/gst/video/video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c index fbac9b1ab..84182508c 100644 --- a/gst-libs/gst/video/video.c +++ b/gst-libs/gst/video/video.c @@ -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 { |