vp9decoder: Fix DPB size signalling

Take current frame into account for the DPB size signalling

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4845>
This commit is contained in:
Seungha Yang 2023-06-13 19:12:32 +09:00 committed by GStreamer Marge Bot
parent 7d2beab9b1
commit 965e566156

View file

@ -251,7 +251,8 @@ gst_vp9_decoder_check_codec_change (GstVp9Decoder * self,
} }
ret = klass->new_sequence (self, frame_hdr, ret = klass->new_sequence (self, frame_hdr,
GST_VP9_REF_FRAMES + priv->preferred_output_delay); /* +1 for the current frame */
GST_VP9_REF_FRAMES + 1 + priv->preferred_output_delay);
if (ret != GST_FLOW_OK) if (ret != GST_FLOW_OK)
priv->had_sequence = FALSE; priv->had_sequence = FALSE;