mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
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:
parent
63716151ef
commit
a35a931555
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue