vpxdec: Skip check of key frame when open GOP
authorZhao, Gang <gang.zhao.42@gmail.com>
Sat, 6 Nov 2021 08:48:20 +0000 (16:48 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 8 Nov 2021 19:42:47 +0000 (19:42 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1316>

subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c

index 03adba8fcdce8131c195328091eb441bbcd177ed..d5351b839a4b27fe4121fecb50c4630d620651bd 100644 (file)
@@ -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