[Mplayer-cvslog] CVS: main/postproc yuv2rgb.c,1.13,1.14

Michael Niedermayer michael at mplayerhq.hu
Thu Oct 17 02:04:38 CEST 2002


Update of /cvsroot/mplayer/main/postproc
In directory mail:/var/tmp.root/cvs-serv6181

Modified Files:
	yuv2rgb.c 
Log Message:
avoid multiple init


Index: yuv2rgb.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/yuv2rgb.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- yuv2rgb.c	13 Aug 2002 19:18:20 -0000	1.13
+++ yuv2rgb.c	17 Oct 2002 00:04:33 -0000	1.14
@@ -232,7 +232,7 @@
 
 void *yuv2rgb_c_init (unsigned bpp, int mode, void *table_rV[256], void *table_gU[256], int table_gV[256], void *table_bU[256]);
 
-yuv2rgb_fun yuv2rgb;
+yuv2rgb_fun yuv2rgb= NULL;
 
 static void (* yuv2rgb_c_internal) (uint8_t *, uint8_t *,
 				    uint8_t *, uint8_t *,
@@ -263,7 +263,7 @@
 
 void yuv2rgb_init (unsigned bpp, int mode)
 {
-    yuv2rgb = NULL;
+    if(yuv2rgb) return;
 #ifdef CAN_COMPILE_X86_ASM
     if(gCpuCaps.hasMMX2)
     {




More information about the MPlayer-cvslog mailing list