vtdec: Remove dead code in switch statement

We never advertise these formats, so these cases will never be hit.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1214>
This commit is contained in:
Nirbheek Chauhan 2021-10-14 12:14:49 +05:30 committed by GStreamer Marge Bot
parent 6aa80270dd
commit d7f6f8172a

View file

@ -584,12 +584,6 @@ gst_vtdec_create_session (GstVtdec * vtdec, GstVideoFormat format,
case GST_VIDEO_FORMAT_NV12: case GST_VIDEO_FORMAT_NV12:
cv_format = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange; cv_format = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
break; break;
case GST_VIDEO_FORMAT_UYVY:
cv_format = kCVPixelFormatType_422YpCbCr8;
break;
case GST_VIDEO_FORMAT_RGBA:
cv_format = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
break;
default: default:
g_warn_if_reached (); g_warn_if_reached ();
break; break;