Commit ed346065 authored by Michael Niedermayer's avatar Michael Niedermayer

yuy2toyv12 bugfix

Originally committed as revision 2807 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
parent 81c0590e
...@@ -758,6 +758,9 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, ...@@ -758,6 +758,9 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
: "memory", "%eax" : "memory", "%eax"
); );
ydst += lumStride;
src += srcStride;
asm volatile( asm volatile(
"xorl %%eax, %%eax \n\t" "xorl %%eax, %%eax \n\t"
".balign 16 \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, ...@@ -781,7 +784,7 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
"cmpl %4, %%eax \n\t" "cmpl %4, %%eax \n\t"
" jb 1b \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" : "memory", "%eax"
); );
#else #else
......
...@@ -758,6 +758,9 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, ...@@ -758,6 +758,9 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
: "memory", "%eax" : "memory", "%eax"
); );
ydst += lumStride;
src += srcStride;
asm volatile( asm volatile(
"xorl %%eax, %%eax \n\t" "xorl %%eax, %%eax \n\t"
".balign 16 \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, ...@@ -781,7 +784,7 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
"cmpl %4, %%eax \n\t" "cmpl %4, %%eax \n\t"
" jb 1b \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" : "memory", "%eax"
); );
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment