mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
video: Fix component width for NV12/NV21
Both have width/2 as component width for the chroma planes.
This commit is contained in:
parent
613c44044a
commit
c30ad57e86
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue