From d7f6f8172a4fca65ab56cb4fe77992c5158b8284 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 14 Oct 2021 12:14:49 +0530 Subject: [PATCH] vtdec: Remove dead code in switch statement We never advertise these formats, so these cases will never be hit. Part-of: --- subprojects/gst-plugins-bad/sys/applemedia/vtdec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/applemedia/vtdec.c b/subprojects/gst-plugins-bad/sys/applemedia/vtdec.c index a17b762a55..f4a453413c 100644 --- a/subprojects/gst-plugins-bad/sys/applemedia/vtdec.c +++ b/subprojects/gst-plugins-bad/sys/applemedia/vtdec.c @@ -584,12 +584,6 @@ gst_vtdec_create_session (GstVtdec * vtdec, GstVideoFormat format, case GST_VIDEO_FORMAT_NV12: cv_format = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange; break; - case GST_VIDEO_FORMAT_UYVY: - cv_format = kCVPixelFormatType_422YpCbCr8; - break; - case GST_VIDEO_FORMAT_RGBA: - cv_format = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange; - break; default: g_warn_if_reached (); break;