From 8f82ee70f92d791c54a529bfbea0a6fa5b20b14d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 21 Apr 2015 13:16:29 +0200 Subject: [PATCH] video-scaler: scale enough pixels in YUY2 (and friends) mode Fixes https://bugzilla.gnome.org/show_bug.cgi?id=747790 --- gst-libs/gst/video/video-scaler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/video/video-scaler.c b/gst-libs/gst/video/video-scaler.c index b637775df7..07c92b053f 100644 --- a/gst-libs/gst/video/video-scaler.c +++ b/gst-libs/gst/video/video-scaler.c @@ -1488,7 +1488,8 @@ gst_video_scaler_2d (GstVideoScaler * hscale, GstVideoScaler * vscale, vx = (hscale->inc * x) >> 16; vx = MIN (vx, hscale->resampler.offset[x]); vw = (hscale->inc * (x + width)) >> 16; - vw = MAX (vw, hscale->resampler.offset[x + width - 1] + h_taps); + vw = MAX (vw, + hscale->resampler.offset[x + width - 1] + (mult * h_taps)); vw += 1; if (vscale->tmpwidth < vw)