diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2001-11-07 23:17:11 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2001-11-07 23:17:11 +0000 |
commit | 9395185f9e375538c064290769b1537438b0e1c8 (patch) | |
tree | ae208915c89a31c026e9652b36c28a22815c3b0b | |
parent | 1b383194f6fbd46bd47ad9ddf8dc316464334f32 (diff) | |
download | ffmpeg-9395185f9e375538c064290769b1537438b0e1c8.tar.gz |
bugfix
Originally committed as revision 2767 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
-rw-r--r-- | postproc/rgb2rgb.c | 3 | ||||
-rw-r--r-- | postproc/rgb2rgb_template.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index 4099aabb84..4dc9857582 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -604,6 +604,9 @@ void rgb32tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size) :: "r" (src), "r"(dst), "r" (num_pixels) : "%eax" ); + + __asm __volatile(SFENCE:::"memory"); + __asm __volatile(EMMS:::"memory"); #else int i; for(i=0; i<num_pixels; i++) diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index 4099aabb84..4dc9857582 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -604,6 +604,9 @@ void rgb32tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size) :: "r" (src), "r"(dst), "r" (num_pixels) : "%eax" ); + + __asm __volatile(SFENCE:::"memory"); + __asm __volatile(EMMS:::"memory"); #else int i; for(i=0; i<num_pixels; i++) |