summaryrefslogtreecommitdiff
path: root/gst-libs/gst/video/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/video/video.c')
-rw-r--r--gst-libs/gst/video/video.c6
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 {