From c30ad57e8658998a33cf9f14305a2fcbd2efa303 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 24 Aug 2010 10:03:04 +0200 Subject: [PATCH] video: Fix component width for NV12/NV21 Both have width/2 as component width for the chroma planes. --- gst-libs/gst/video/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c index 9914e7b60c..4802ef571f 100644 --- a/gst-libs/gst/video/video.c +++ b/gst-libs/gst/video/video.c @@ -1313,6 +1313,8 @@ gst_video_format_get_component_width (GstVideoFormat format, case GST_VIDEO_FORMAT_Y42B: case GST_VIDEO_FORMAT_v210: case GST_VIDEO_FORMAT_v216: + case GST_VIDEO_FORMAT_NV12: + case GST_VIDEO_FORMAT_NV21: if (component == 0) { return width; } else { @@ -1341,8 +1343,6 @@ gst_video_format_get_component_width (GstVideoFormat format, case GST_VIDEO_FORMAT_BGR15: case GST_VIDEO_FORMAT_Y444: case GST_VIDEO_FORMAT_v308: - case GST_VIDEO_FORMAT_NV12: - case GST_VIDEO_FORMAT_NV21: case GST_VIDEO_FORMAT_GRAY8: case GST_VIDEO_FORMAT_GRAY16_BE: case GST_VIDEO_FORMAT_GRAY16_LE: -- 2.34.1