[SCM] libav/experimental: Start using intermediate buffers at index 0. These index variables are incremented before each use, so they should be initialized to -1.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:55:39 UTC 2013
The following commit has been merged in the experimental branch:
commit 75084e47ffc24bede7acaf00c5e092ca46f52bbc
Author: Ramiro Polla <ramiro.polla at gmail.com>
Date: Sun Dec 6 22:01:25 2009 +0000
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
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c
index 935b8c5..675db6a 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list