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.
This commit is contained in:
Robert Swain 2012-09-19 00:17:49 +02:00
parent 63716151ef
commit a35a931555

View file

@ -2439,7 +2439,7 @@ gst_deinterlace_setcaps (GstDeinterlace * self, GstPad * pad, GstCaps * caps)
goto caps_not_accepted; goto caps_not_accepted;
if (fps_n != 0) { 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 { } else {
self->field_duration = 0; self->field_duration = 0;
} }