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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2114>
This commit is contained in:
Seungha Yang 2021-03-26 22:27:38 +09:00
parent c9518780fd
commit 76e5e479be

View file

@ -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);