changeset 2271:a8d57bbc4413

horizontal lines bugfix
author michael
date Fri, 19 Oct 2001 01:53:45 +0000
parents 56ca174d8169
children c26a9eff0993
files postproc/swscale.c postproc/swscale_template.c
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/swscale.c	Fri Oct 19 01:26:36 2001 +0000
+++ b/postproc/swscale.c	Fri Oct 19 01:53:45 2001 +0000
@@ -116,13 +116,13 @@
 	}
 #endif
 
+  // force calculation of the horizontal interpolation of the first line
+  s_last_ypos=-99;
+  s_last_y1pos=-99;
+
   if(y==0){
       s_srcypos= s_yinc/2 - 0x8000;
       s_ypos=0;
-
-      // force calculation of the horizontal interpolation of the first line
-      s_last_ypos=-99;
-      s_last_y1pos=-99;
 #ifdef HAVE_MMX2
 // cant downscale !!!
 	if((old_s_xinc != s_xinc || old_dstw!=dstw) && canMMX2BeUsed)
--- a/postproc/swscale_template.c	Fri Oct 19 01:26:36 2001 +0000
+++ b/postproc/swscale_template.c	Fri Oct 19 01:53:45 2001 +0000
@@ -116,13 +116,13 @@
 	}
 #endif
 
+  // force calculation of the horizontal interpolation of the first line
+  s_last_ypos=-99;
+  s_last_y1pos=-99;
+
   if(y==0){
       s_srcypos= s_yinc/2 - 0x8000;
       s_ypos=0;
-
-      // force calculation of the horizontal interpolation of the first line
-      s_last_ypos=-99;
-      s_last_y1pos=-99;
 #ifdef HAVE_MMX2
 // cant downscale !!!
 	if((old_s_xinc != s_xinc || old_dstw!=dstw) && canMMX2BeUsed)