changeset 29935:4eb0a863bb38

Start using intermediate buffers at index 0. These index variables are incremented before each use, so they should be initialized to -1.
author ramiro
date Sun, 06 Dec 2009 22:01:25 +0000
parents ccbc4361e9e6
children f43f03c00402
files libswscale/swscale_template.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale_template.c	Sat Dec 05 09:44:19 2009 +0000
+++ b/libswscale/swscale_template.c	Sun Dec 06 22:01:25 2009 +0000
@@ -2661,8 +2661,8 @@
        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;