[FFmpeg-cvslog] lavfi: math typo in interlace filter

Vittorio Giovara git at videolan.org
Tue Jun 18 09:43:35 CEST 2013


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Jun 17 11:54:26 2013 +0200| [cd0faeee62ffe96f294ad3baf1b55343be63a2a7] | committer: Luca Barbato

lavfi: math typo in interlace filter

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd0faeee62ffe96f294ad3baf1b55343be63a2a7
---

 libavfilter/vf_interlace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c
index d3c3d4d..ff54896 100755
--- a/libavfilter/vf_interlace.c
+++ b/libavfilter/vf_interlace.c
@@ -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
-                    // '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;
                 }



More information about the ffmpeg-cvslog mailing list