[Mplayer-cvslog] CVS: main/libmpeg2 decode.c,1.10,1.11

Arpi of Ize arpi at mplayer.dev.hu
Wed Aug 22 23:34:13 CEST 2001


Update of /cvsroot/mplayer/main/libmpeg2
In directory mplayer:/var/tmp.root/cvs-serv2497

Modified Files:
	decode.c 
Log Message:
do table permutation only once

Index: decode.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/decode.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- decode.c	3 Jun 2001 18:22:59 -0000	1.10
+++ decode.c	22 Aug 2001 21:34:10 -0000	1.11
@@ -59,6 +59,8 @@
 int quant_store[MBR+1][MBC+1]; // [Review]
 #endif
 
+static table_init_state=0;
+
 void mpeg2_init (void)
 {
 
@@ -86,8 +88,11 @@
     
     picture->pp_options=0;
 
-    idct_init ();
-    motion_comp_init ();
+    if(!table_init_state){
+	idct_init ();
+	motion_comp_init ();
+	table_init_state=1;
+    }
 }
 
 static vo_frame_t frames[4];




More information about the MPlayer-cvslog mailing list