From c7b11482d01ccc9ee6cf863b343e966875e93e7e Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Sat, 30 Jan 2021 16:16:13 +0200 Subject: [PATCH] deinterlace: Fix telecine/onefield mixup https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/838 Part-of: --- gst/deinterlace/gstdeinterlacemethod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/deinterlace/gstdeinterlacemethod.c b/gst/deinterlace/gstdeinterlacemethod.c index 105a73f..24893f8 100644 --- a/gst/deinterlace/gstdeinterlacemethod.c +++ b/gst/deinterlace/gstdeinterlacemethod.c @@ -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) { -- 2.7.4