ducatividdec: remove the interlaced MPEG2 half height hack
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 3 Aug 2012 13:43:19 +0000 (13:43 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 3 Aug 2012 13:47:56 +0000 (13:47 +0000)
It breaks a sample I have, and should not be needed anymore.

src/gstducatividdec.c

index 11673362317b8ce9a0230890307c8f999ac3f55e..5264da783bba5c885de99926e410f60b22e198fa 100644 (file)
@@ -383,7 +383,6 @@ codec_process (GstDucatiVidDec * self, gboolean send, gboolean flush,
 
     if (G_UNLIKELY (self->send_crop_event) && send) {
       gint crop_width, crop_height;
-      GstDucatiVidDecClass *klass = GST_DUCATIVIDDEC_GET_CLASS (self);
 
       /* send region of interest to sink on first buffer: */
       XDM_Rect *r = &(self->outArgs->displayBufs.bufDesc[0].activeFrameRegion);
@@ -396,9 +395,6 @@ codec_process (GstDucatiVidDec * self, gboolean send, gboolean flush,
       if (crop_height > self->input_height)
         crop_height = self->input_height;
 
-      if (self->interlaced && !strcmp (klass->codec_name, "ivahd_mpeg2vdec"))
-        crop_height = crop_height / 2;
-
       GST_INFO_OBJECT (self, "active frame region %d, %d, %d, %d, crop %dx%d",
           r->topLeft.x, r->topLeft.y, r->bottomRight.x, r->bottomRight.y,
           crop_width, crop_height);