diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-11 20:42:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-12 16:32:55 +0100 |
commit | 05577aafaa75e255a140cd8454fd7c8cffa67965 (patch) | |
tree | cb2646469bd01fc618225798aac86d49336927f6 | |
parent | 051257495a123ad3883659137e6c8b59d3f4b393 (diff) | |
download | ffmpeg-05577aafaa75e255a140cd8454fd7c8cffa67965.tar.gz |
sws: yuv2rgb asm, add memory clobber.
This fixes dithering for rgb555le, it appears gcc had moved the
setup of the variables after the asm or something like that.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswscale/x86/yuv2rgb_template.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/x86/yuv2rgb_template.c b/libswscale/x86/yuv2rgb_template.c index 926e3fb9c4..624de14252 100644 --- a/libswscale/x86/yuv2rgb_template.c +++ b/libswscale/x86/yuv2rgb_template.c @@ -138,6 +138,7 @@ : "+r" (index), "+r" (image) \ : "r" (pu - index), "r" (pv - index), "r"(&c->redDither), \ "r" (py - 2*index) \ + : "memory" \ ); \ } \ @@ -145,6 +146,7 @@ : "+r" (index), "+r" (image) \ : "r" (pu - index), "r" (pv - index), "r"(&c->redDither), \ "r" (py - 2*index), "r" (pa - 2*index) \ + : "memory" \ ); \ } \ |