Commit a35a9315 authored by Robert Swain's avatar Robert Swain

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.
parent 63716151
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment