deinterlace: Fix field duration
authorRobert Swain <robert.swain@collabora.co.uk>
Tue, 18 Sep 2012 22:17:49 +0000 (00:17 +0200)
committerRobert Swain <robert.swain@collabora.co.uk>
Tue, 18 Sep 2012 22:17:49 +0000 (00:17 +0200)
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

index 280d186..e73d087 100644 (file)
@@ -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;
   }