lavfi: math typo in interlace filter
authorVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 17 Jun 2013 09:54:26 +0000 (11:54 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 17 Jun 2013 10:25:43 +0000 (12:25 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavfilter/vf_interlace.c

index d3c3d4d..ff54896 100755 (executable)
@@ -150,7 +150,7 @@ static void copy_picture_field(AVFrame *src_frame, AVFrame *dst_frame,
                     srcp_below = srcp; // there is no line below
                 for (i = 0; i < linesize; i++) {
                     // this calculation is an integer representation of
                     srcp_below = srcp; // there is no line below
                 for (i = 0; i < linesize; i++) {
                     // this calculation is an integer representation of
-                    // '0.5 * current + 0.25 * above + 0.25 + below'
+                    // '0.5 * current + 0.25 * above + 0.25 * below'
                     // '1 +' is for rounding.
                     dstp[i] = (1 + srcp[i] + srcp[i] + srcp_above[i] + srcp_below[i]) >> 2;
                 }
                     // '1 +' is for rounding.
                     dstp[i] = (1 + srcp[i] + srcp[i] + srcp_above[i] + srcp_below[i]) >> 2;
                 }