diff options
author | ramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-12-06 22:01:25 +0000 |
---|---|---|
committer | ramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-12-06 22:01:25 +0000 |
commit | 71f9e96fc7470f5ca692698067898c8ce3d6cfec (patch) | |
tree | 4b49669804c5ac7184703d4e0f24dbefbcd31a3f /libswscale | |
parent | 63e520efbfd5bea0f6e613cce21467d844ba7179 (diff) | |
download | mpv-71f9e96fc7470f5ca692698067898c8ce3d6cfec.tar.bz2 mpv-71f9e96fc7470f5ca692698067898c8ce3d6cfec.tar.xz |
Start using intermediate buffers at index 0.
These index variables are incremented before each use, so they should be
initialized to -1.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29977 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-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; |