avfilter/vf_stereo3d: multiply linesize only once for interleaved row to mono
authorPaul B Mahol <onemda@gmail.com>
Fri, 18 Dec 2015 18:44:01 +0000 (19:44 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 18 Dec 2015 18:44:01 +0000 (19:44 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_stereo3d.c

index 22f64aa..3222d8e 100644 (file)
@@ -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: