From b5793ccd0d33b4cfa04f5ea900a047ab646f7b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 28 Mar 2009 11:51:01 +0100 Subject: [PATCH] videoscale: Use bilinear instead of 4tap scaling for heights < 4 Partially fixes bug #577054. --- gst/videoscale/gstvideoscale.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 7f35bcd78b..bceae21258 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -734,6 +734,9 @@ gst_video_scale_transform (GstBaseTransform * trans, GstBuffer * in, gst_video_scale_prepare_image (videoscale->format, out, dest, &dest_u, &dest_v); + if (src->height < 4 && method == GST_VIDEO_SCALE_4TAP) + method = GST_VIDEO_SCALE_BILINEAR; + switch (method) { case GST_VIDEO_SCALE_NEAREST: GST_LOG_OBJECT (videoscale, "doing nearest scaling");