]> git.sesse.net Git - ffmpeg/blobdiff - libswscale/swscale_template.c
revert r20775, because equivalent code has been committed to x264 instead
[ffmpeg] / libswscale / swscale_template.c
index 935b8c50167c9abc34d0e852a8b744999776d6bc..675db6aa3fb052b6484ed390230460728337eeda 100644 (file)
@@ -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;