[SCM] libav/experimental: bugfix

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:30:34 UTC 2013


The following commit has been merged in the experimental branch:
commit 9395185f9e375538c064290769b1537438b0e1c8
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Nov 7 23:17:11 2001 +0000

    bugfix
    
    Originally committed as revision 2767 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c
index 4099aab..4dc9857 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 4099aab..4dc9857 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++)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list