diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-12-06 22:01:25 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-12-06 22:01:25 +0000 |
commit | 75084e47ffc24bede7acaf00c5e092ca46f52bbc (patch) | |
tree | 17563987e479674d4ad7f7a9cab1fbee6999012d /libswscale/swscale_template.c | |
parent | 3a1acfd79ad83bc7a4d08b736b270c589c30483f (diff) | |
download | ffmpeg-75084e47ffc24bede7acaf00c5e092ca46f52bbc.tar.gz |
Start using intermediate buffers at index 0.
These index variables are incremented before each use, so they should be
initialized to -1.
Originally committed as revision 29977 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_template.c')
-rw-r--r-- | libswscale/swscale_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index 935b8c5016..675db6aa3f 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -2661,8 +2661,8 @@ static int RENAME(swScale)(SwsContext *c, uint8_t* src[], int srcStride[], int s will not get executed. This is not really intended but works currently, so people might do it. */ if (srcSliceY ==0) { - lumBufIndex=0; - chrBufIndex=0; + lumBufIndex=-1; + chrBufIndex=-1; dstY=0; lastInLumBuf= -1; lastInChrBuf= -1; |