From 750909abceb235f0d9da5b935a6a1bf4dafcd764 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 4 Feb 2015 16:37:22 +0100 Subject: [PATCH] video-converter: skip lines we don't need Make sure to skip unused lines instead of doing a useless horizontal resampling. --- gst-libs/gst/video/video-converter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/video/video-converter.c b/gst-libs/gst/video/video-converter.c index 530647761e..80c880def9 100644 --- a/gst-libs/gst/video/video-converter.c +++ b/gst-libs/gst/video/video-converter.c @@ -3068,6 +3068,8 @@ convert_scale_planes (GstVideoConverter * convert, gst_video_scaler_get_coeff (v_scaler, i, &in, &n_taps); + while (tmp_in < in) + tmp_in++; while (tmp_in < in + n_taps) { s = FRAME_GET_PLANE_LINE (src, k, tmp_in); gst_video_scaler_horizontal (h_scaler, format,