From d3c2a7c8d1bb94a4bf6fa745ef93d2ca9f59f7d0 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 10 Apr 2020 11:47:03 +0200 Subject: omxvideoenc: remove unsupported formats from caps template Our encoder implementation actually supports a small subset of the formats supported by the decoder. Those are the formats for which we have a copy path in gst_omx_video_enc_fill_buffer() and which are not filtered out in filter_supported_formats(). --- omx/gstomxvideodec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'omx/gstomxvideodec.c') diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index ac2c7a8..9e172a4 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -191,10 +191,10 @@ gst_omx_video_dec_class_init (GstOMXVideoDecClass * klass) #endif #ifdef USE_OMX_TARGET_ZYNQ_USCALE_PLUS GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_FORMAT_INTERLACED, - GST_OMX_VIDEO_SUPPORTED_FORMATS) + GST_OMX_VIDEO_DEC_SUPPORTED_FORMATS) ", interlace-mode = (string) alternate ; " #endif - GST_VIDEO_CAPS_MAKE (GST_OMX_VIDEO_SUPPORTED_FORMATS); + GST_VIDEO_CAPS_MAKE (GST_OMX_VIDEO_DEC_SUPPORTED_FORMATS); } static void -- cgit v1.2.1