diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-11 00:50:40 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-11 00:50:40 +0000 |
commit | 7c90427a5c74cc446835c03f36da6ab6e2ede669 (patch) | |
tree | a373545a3a254057ef9aa2f569a00ebd5583dfd9 /postproc | |
parent | 663c276f0065c41f8c837bde32d7625df4a14914 (diff) |
yuy2toyv12 bugfix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2807 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/rgb2rgb.c | 5 | ||||
-rw-r--r-- | postproc/rgb2rgb_template.c | 5 |
2 files changed, 8 insertions, 2 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 diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index 2157de908f..ab2878f9bd 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.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 |