ducatih264enc: fix B frames being disabled
[glsdk/gst-plugin-ducati.git] / src / gstducatih264enc.c
index f2514a22cd0bc1f77bbd2111cd20b3a962f3991e..4df4516a1ebc4e20b862bf5998318210edf00064 100644 (file)
@@ -618,6 +618,7 @@ gst_ducati_h264enc_configure (GstDucatiVidEnc * videnc)
   dynParams->rateControlParams.qpMinI = self->qp_min_i;
   dynParams->rateControlParams.HRDBufferSize = self->hrd_buffer_size;
   dynParams->sliceCodingParams.sliceMode = self->slice_mode;
+  videnc->dynParams->interFrameInterval = self->inter_interval;
 
   state = gst_base_video_encoder_get_state (GST_BASE_VIDEO_ENCODER (videnc));
   caps = gst_caps_new_simple ("video/x-h264",