From aefcc77b9051812b2da902c1acd1e92d337f742b Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 18 Dec 2015 19:44:01 +0100 Subject: [PATCH] avfilter/vf_stereo3d: multiply linesize only once for interleaved row to mono Signed-off-by: Paul B Mahol --- libavfilter/vf_stereo3d.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavfilter/vf_stereo3d.c b/libavfilter/vf_stereo3d.c index 22f64aa547..3222d8ec20 100644 --- a/libavfilter/vf_stereo3d.c +++ b/libavfilter/vf_stereo3d.c @@ -781,8 +781,7 @@ copy: case INTERLEAVE_ROWS_LR: case INTERLEAVE_ROWS_RL: for (i = 0; i < s->nb_planes; i++) { - oleft->linesize[i] *= 2; - oright->linesize[i] *= 2; + out->linesize[i] *= 2; } case ABOVE_BELOW_LR: case ABOVE_BELOW_RL: