width instead of chromWidth causing segfault in some cases
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 10 Aug 2004 20:23:58 +0000 (20:23 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 10 Aug 2004 20:23:58 +0000 (20:23 +0000)
Originally committed as revision 12994 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/rgb2rgb_template.c

index 81d274b..14f0e2d 100644 (file)
@@ -2291,7 +2291,7 @@ static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_
                        "movd %%mm0, (%3, %%eax)        \n\t"
                        "addl $4, %%eax                 \n\t"
                        " js 1b                         \n\t"
-                       : : "r" (src+width*6), "r" (src+srcStride+width*6), "r" (udst+width), "r" (vdst+width), "g" (-width)
+                       : : "r" (src+chromWidth*6), "r" (src+srcStride+chromWidth*6), "r" (udst+chromWidth), "r" (vdst+chromWidth), "g" (-chromWidth)
                        : "%eax", "%ebx"
                );