From 5ac1a12927614ea932dba8f44f26824d528f7791 Mon Sep 17 00:00:00 2001 From: "Zhao, Gang" Date: Sat, 6 Nov 2021 16:48:20 +0800 Subject: [PATCH] vpxdec: Skip check of key frame when open GOP Valid stream [1] might has no key frame. Fixed: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/890 [1] https://storage.googleapis.com/downloads.webmproject.org/test_data/libvpx/vp90-2-16-intra-only.webm Part-of: --- subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c b/subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c index 03adba8fcd..d5351b839a 100644 --- a/subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c +++ b/subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c @@ -604,10 +604,7 @@ gst_vpx_dec_open_codec (GstVPXDec * dec, GstVideoCodecFrame * frame) gst_vpx_error_name (status)); return GST_FLOW_CUSTOM_SUCCESS_1; } - if (!stream_info.is_kf) { - GST_INFO_OBJECT (dec, "No keyframe, skipping"); - return GST_FLOW_CUSTOM_SUCCESS_1; - } + if (stream_info.w == 0 || stream_info.h == 0) { /* For VP8 it's possible to signal width or height to be 0, but it does * not make sense to do so. For VP9 it's impossible. Hence, we most likely