vp9parse: The show_existing_frame buffer should not be decode only.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3155>
This commit is contained in:
He Junyan 2022-10-12 16:11:47 +08:00 committed by GStreamer Marge Bot
parent eac9c33cc1
commit 11436be268

View file

@ -772,7 +772,7 @@ gst_vp9_parse_parse_frame (GstVp9Parse * self, GstBaseParseFrame * frame,
GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DELTA_UNIT);
if (self->align == GST_VP9_PARSE_ALIGN_FRAME) {
if (!frame_hdr->show_frame)
if (!frame_hdr->show_frame && !frame_hdr->show_existing_frame)
GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DECODE_ONLY);
else
GST_BUFFER_FLAG_UNSET (buffer, GST_BUFFER_FLAG_DECODE_ONLY);