From 32aa9590ac02e477b6ffe83806e735fd4a86c362 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 17 Nov 2011 22:39:46 +0100 Subject: [PATCH] vf_scale: Fix slice position assert to take vertical subsampling into account. Signed-off-by: Michael Niedermayer --- libavfilter/vf_scale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index d3d7f0d1a8..8483536404 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -304,7 +304,7 @@ static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir) scale->slice_y = link->dst->outputs[0]->h; if(scale->interlaced>0 || (scale->interlaced<0 && link->cur_buf->video->interlaced)){ - av_assert0(y%4 == 0); + av_assert0(y%(2<vsub) == 0); out_h = scale_slice(link, scale->isws[0], y, (h+1)/2, 2, 0); out_h+= scale_slice(link, scale->isws[1], y, h /2, 2, 1); }else{