From: Robert Swain Date: Tue, 18 Sep 2012 22:17:49 +0000 (+0200) Subject: deinterlace: Fix field duration X-Git-Tag: 1.0.0~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a35a9315556c9a3477cbf86fc4e79fdc05b1c182;p=platform%2Fupstream%2Fgst-plugins-good.git deinterlace: Fix field duration The frame rate fraction is correctly adjusted in the cases preceding the field duration calculation and so the factor of 2 is incorrect. --- diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 280d186..e73d087 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -2439,7 +2439,7 @@ gst_deinterlace_setcaps (GstDeinterlace * self, GstPad * pad, GstCaps * caps) goto caps_not_accepted; if (fps_n != 0) { - self->field_duration = gst_util_uint64_scale (GST_SECOND, fps_d, 2 * fps_n); + self->field_duration = gst_util_uint64_scale (GST_SECOND, fps_d, fps_n); } else { self->field_duration = 0; }