mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
v4l2codecs: vp9: Drop frames on non-keyframe format change
V4L2 does not yet support this feature, this will skip over the transition portion up to the next keyframe. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1404>
This commit is contained in:
parent
a6eb1e7782
commit
05458f05e0
1 changed files with 5 additions and 0 deletions
|
@ -353,6 +353,7 @@ gst_v4l2_codec_vp9_dec_fill_dec_params (GstV4l2CodecVp9Dec * self,
|
|||
static gboolean
|
||||
gst_v4l2_codec_vp9_dec_open (GstVideoDecoder * decoder)
|
||||
{
|
||||
GstVp9Decoder *vp9dec = GST_VP9_DECODER (decoder);
|
||||
GstV4l2CodecVp9Dec *self = GST_V4L2_CODEC_VP9_DEC (decoder);
|
||||
|
||||
if (!gst_v4l2_decoder_open (self->decoder)) {
|
||||
|
@ -362,6 +363,10 @@ gst_v4l2_codec_vp9_dec_open (GstVideoDecoder * decoder)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* V4L2 does not support non-keyframe resolution change, this will ask the
|
||||
* base class to drop frame until the next keyframe as a workaround. */
|
||||
gst_vp9_decoder_set_non_keyframe_format_change_support (vp9dec, FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue