mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
051257495a
commit
05577aafaa
|
@ -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" \
|
||||
); \
|
||||
} \
|
||||
|
||||
|
|
Loading…
Reference in New Issue