From 1106eb16b66447fe3f1f6b2b6fcca6921a8db15b Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sat, 9 May 2020 03:07:33 +1000 Subject: [PATCH] deinterlace: Handle NV12/NV21 for the greedyl mode. Don't fall back on the default interpolate_scanline function, which blindly tries to copy from the next field, which can be NULL in mixed progressive/interlaced streams Part-of: --- gst/deinterlace/tvtime/greedy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/deinterlace/tvtime/greedy.c b/gst/deinterlace/tvtime/greedy.c index 804ce8b4f4..5a01cc6f3c 100644 --- a/gst/deinterlace/tvtime/greedy.c +++ b/gst/deinterlace/tvtime/greedy.c @@ -203,6 +203,10 @@ gst_deinterlace_method_greedy_l_class_init (GstDeinterlaceMethodGreedyLClass * deinterlace_greedy_interpolate_scanline_orc; dism_class->interpolate_scanline_uyvy = deinterlace_greedy_interpolate_scanline_orc; + dism_class->interpolate_scanline_nv12 = + deinterlace_greedy_interpolate_scanline_orc; + dism_class->interpolate_scanline_nv21 = + deinterlace_greedy_interpolate_scanline_orc; dism_class->interpolate_scanline_argb = deinterlace_greedy_interpolate_scanline_orc; dism_class->interpolate_scanline_abgr =