ducatih264enc: fix B frames being disabled
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 23 Oct 2012 17:01:02 +0000 (18:01 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 23 Oct 2012 17:01:02 +0000 (18:01 +0100)
The dynparams also need overriding, or the settings in
params will get ignored.

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",