mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
deinterlace: Fix telecine/onefield mixup
https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/838 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/866>
This commit is contained in:
parent
4c4e1b580e
commit
c7b11482d0
1 changed files with 2 additions and 2 deletions
|
@ -335,8 +335,8 @@ get_line (LinesGetter * lg, gint field_offset, guint plane, gint line,
|
|||
|
||||
/* Now frame already refers to the field we want, the correct one is taken
|
||||
* from the history */
|
||||
if (GST_VIDEO_FRAME_FLAG_IS_SET (frame, GST_VIDEO_FRAME_FLAG_TOP_FIELD) ||
|
||||
GST_VIDEO_FRAME_FLAG_IS_SET (frame, GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD)) {
|
||||
if (GST_VIDEO_INFO_INTERLACE_MODE (&frame->info) ==
|
||||
GST_VIDEO_INTERLACE_MODE_ALTERNATE) {
|
||||
/* Alternate frame containing a single field, adjust the line index */
|
||||
line /= 2;
|
||||
switch (line_offset) {
|
||||
|
|
Loading…
Reference in a new issue