Realigned code on new Ducati header files
[glsdk/gst-plugin-ducati.git] / src / gstducatih264dec.c
index 6c049e76e6501708b6aab257158c4e6b54c02dac..05e1c94d491376ac94347b1e06325e441a064ce0 100644 (file)
@@ -123,7 +123,7 @@ gst_ducati_h264dec_allocate_params (GstDucatiVidDec * self, gint params_sz,
     IH264VDEC_Params *params = (IH264VDEC_Params *) self->params;
 
     self->params->displayDelay = IVIDDEC3_DECODE_ORDER;
-    params->maxNumRefFrames = IH264VDEC_NUM_REFFRAMES_AUTO;
+    params->dpbSizeInFrames = IH264VDEC_DPB_NUMFRAMES_AUTO;
     params->pConstantMemory = 0;
     params->presetLevelIdc = IH264VDEC_LEVEL41;
     params->errConcealmentMode = IH264VDEC_APPLY_CONCEALMENT;
@@ -382,7 +382,7 @@ gst_ducati_h264dec_set_sink_caps (GstDucatiVidDec * self, GstCaps * caps)
 
     if (gst_structure_get_int (structure, "num-ref-frames", &num_ref_frames)
         && num_ref_frames >= 0) {
-      ((IH264VDEC_Params *) self->params)->maxNumRefFrames = num_ref_frames;
+      ((IH264VDEC_Params *) self->params)->dpbSizeInFrames = num_ref_frames;
     }
     if (gst_structure_get_int (structure, "num-reorder-frames",
             &num_reorder_frames)