diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2001-11-11 00:50:40 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2001-11-11 00:50:40 +0000 |
commit | ed3460658f77009cce1494e219e9f8e9657fe3f6 (patch) | |
tree | b56a870cebebf7b1eb9a9723563a07b575e4ed28 /postproc/rgb2rgb.c | |
parent | 81c0590e6c88b6c0752e52ef77e003cef3eaadf5 (diff) | |
download | ffmpeg-ed3460658f77009cce1494e219e9f8e9657fe3f6.tar.gz |
yuy2toyv12 bugfix
Originally committed as revision 2807 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/rgb2rgb.c')
-rw-r--r-- | postproc/rgb2rgb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index 2157de908f..ab2878f9bd 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -758,6 +758,9 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, : "memory", "%eax" ); + ydst += lumStride; + src += srcStride; + asm volatile( "xorl %%eax, %%eax \n\t" ".balign 16 \n\t" @@ -781,7 +784,7 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, "cmpl %4, %%eax \n\t" " jb 1b \n\t" - ::"r"(src+srcStride), "r"(ydst+lumStride), "r"(udst), "r"(vdst), "r" (chromWidth) + ::"r"(src), "r"(ydst), "r"(udst), "r"(vdst), "r" (chromWidth) : "memory", "%eax" ); #else |