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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/585>
This commit is contained in:
Jan Schmidt 2020-05-09 03:07:33 +10:00
parent 82dc670f1f
commit 1106eb16b6

View file

@ -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 =