From 76e5e479be367b9adfaf7ff185cb7b1d5e933ac5 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 26 Mar 2021 22:27:38 +0900 Subject: [PATCH] codecs: vp9decoder: Fix to output frame when show_existing_frame flag is set When show_existing_frame flag is set, show_frame flag is zero but we should output previously decoded frame as specified in frame header. Part-of: --- gst-libs/gst/codecs/gstvp9decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/codecs/gstvp9decoder.c b/gst-libs/gst/codecs/gstvp9decoder.c index 5e3e2cf91c..f6d14ab885 100644 --- a/gst-libs/gst/codecs/gstvp9decoder.c +++ b/gst-libs/gst/codecs/gstvp9decoder.c @@ -388,7 +388,7 @@ gst_vp9_decoder_handle_frame (GstVideoDecoder * decoder, gst_buffer_unmap (in_buf, &map); - if (!picture->frame_hdr.show_frame) { + if (!frame_hdr.show_frame && !frame_hdr.show_existing_frame) { GST_LOG_OBJECT (self, "Decode only picture %p", picture); GST_VIDEO_CODEC_FRAME_SET_DECODE_ONLY (frame);