mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-13 18:55:08 +00:00
yuy2toyv12 bugfix
Originally committed as revision 2807 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
parent
81c0590e6c
commit
ed3460658f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user