diff options
author | Seungha Yang <seungha@centricular.com> | 2021-07-14 19:39:11 +0900 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-14 14:32:57 +0000 |
commit | cd50b02bc9fdf3c55385fe2088b7a48449dc9369 (patch) | |
tree | 76e0985f7c3b3523ff4e58be8ec00d434eaaf90a /gst | |
parent | 108eba3603c89762080a64aff1e8ed96381eb997 (diff) | |
download | gstreamer-plugins-bad-cd50b02bc9fdf3c55385fe2088b7a48449dc9369.tar.gz |
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2408>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videoparsers/gstvp9parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |