From a35a9315556c9a3477cbf86fc4e79fdc05b1c182 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Wed, 19 Sep 2012 00:17:49 +0200 Subject: [PATCH] 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. --- gst/deinterlace/gstdeinterlace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 280d186cfd..e73d0877f9 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; }