vp9parse: Skip parsing decode-only frame
authorSeungha Yang <seungha@centricular.com>
Wed, 14 Jul 2021 10:39:11 +0000 (19:39 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 14 Jul 2021 14:32:57 +0000 (14:32 +0000)
Decode-only frame (i.e., show_existing_frame == 1) doesn't hold
any valid information apart from the index of frame to be duplicated.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2408>

gst/videoparsers/gstvp9parse.c

index d5e6f4a..a8d2d1e 100644 (file)
@@ -297,7 +297,8 @@ gst_vp9_parse_process_frame (GstVp9Parse * self, GstVp9FrameHdr * frame_hdr)
   gint width, height;
 
   /* the resolution might be varying. Update our status per key frame */
-  if (frame_hdr->frame_type != GST_VP9_KEY_FRAME) {
+  if (frame_hdr->frame_type != GST_VP9_KEY_FRAME ||
+      frame_hdr->show_existing_frame) {
     return TRUE;
   }