From 316b182a86e118de30bb9470b42e75d75aae262a Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 20 Jul 2022 12:11:47 -0400 Subject: [PATCH] v4l2codecs: h264: Reset the number of slices on picture start This way, if we aborted a frame in the middle, we don't endup thinking there is multiple slices to send. Part-of: --- subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c index 0df76a2ac8..f2657c0837 100644 --- a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c +++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c @@ -984,6 +984,7 @@ gst_v4l2_codec_h264_dec_start_picture (GstH264Decoder * decoder, dpb); self->first_slice = TRUE; + self->num_slices = 0; return GST_FLOW_OK; }