From cd50b02bc9fdf3c55385fe2088b7a48449dc9369 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Wed, 14 Jul 2021 19:39:11 +0900 Subject: vp9parse: Skip parsing decode-only frame 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: --- gst/videoparsers/gstvp9parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst') diff --git a/gst/videoparsers/gstvp9parse.c b/gst/videoparsers/gstvp9parse.c index d5e6f4a96..a8d2d1eda 100644 --- a/gst/videoparsers/gstvp9parse.c +++ b/gst/videoparsers/gstvp9parse.c @@ -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; } -- cgit v1.2.1