projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
29edc0c
)
video: fix default colorspace settings
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 4 Jun 2012 12:51:41 +0000
(14:51 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 4 Jun 2012 14:17:32 +0000
(16:17 +0200)
HD content is defined as height > 576
gst-libs/gst/video/video.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/video.c
b/gst-libs/gst/video/video.c
index
fbac9b1
..
8418250
100644
(file)
--- 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 {