From 780df29cb17c506ec1c8a278f4cc79883f6372a2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 6 Nov 2014 18:13:12 +0100 Subject: [PATCH] video-info: use h-cosited chroma for HD video by default --- gst-libs/gst/video/video-info.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/video-info.c b/gst-libs/gst/video/video-info.c index 52c9b1211d..66a128040d 100644 --- a/gst-libs/gst/video/video-info.c +++ b/gst-libs/gst/video/video-info.c @@ -102,10 +102,13 @@ gst_video_info_set_format (GstVideoInfo * info, GstVideoFormat format, info->height = height; if (GST_VIDEO_FORMAT_INFO_IS_YUV (finfo)) { - if (height > 576) + if (height > 576) { + info->chroma_site = GST_VIDEO_CHROMA_SITE_H_COSITED; info->colorimetry = default_color[DEFAULT_YUV_HD]; - else + } else { + info->chroma_site = GST_VIDEO_CHROMA_SITE_NONE; info->colorimetry = default_color[DEFAULT_YUV_SD]; + } } else if (GST_VIDEO_FORMAT_INFO_IS_GRAY (finfo)) { info->colorimetry = default_color[DEFAULT_GRAY]; } else if (GST_VIDEO_FORMAT_INFO_IS_RGB (finfo)) {