diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2001-10-19 15:50:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2001-10-19 15:50:44 +0000 |
commit | 84adc106cf2ced0d10ff429027e9a89608e8f62d (patch) | |
tree | 4112255381d8124f9eecd0774d9365946c38779e /postproc/swscale.c | |
parent | 311832de1f39c56fd8bac8dda9868a17d7ff0b28 (diff) | |
download | ffmpeg-84adc106cf2ced0d10ff429027e9a89608e8f62d.tar.gz |
first line bug fixed (happend if the image was scaled down or 1:1)
Originally committed as revision 2298 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale.c')
-rw-r--r-- | postproc/swscale.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c index 61b5c5480a..878c7ddc81 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -98,7 +98,6 @@ static int old_s_xinc= -1; #endif int canMMX2BeUsed=0; -static int test=0; int srcWidth= (dstw*s_xinc + 0x8000)>>16; #ifdef HAVE_MMX2 @@ -119,7 +118,7 @@ s_xinc2=s_xinc>>1; s_last_y1pos=-99; if(y==0){ - s_srcypos= s_yinc/2 - 0x8000; + s_srcypos=-0x8000; s_ypos=0; #ifdef HAVE_MMX2 // cant downscale !!! @@ -534,6 +533,12 @@ FUNNYUVCODE xpos+=s_xinc2; } #endif + // if this is the line before the first line + if(s_srcypos == s_xinc - 0x8000) + { + s_srcypos= s_yinc/2 - 0x8000; + continue; + } } |