changeset 1636:3c33deb3e561

do table permutation only once
author arpi
date Wed, 22 Aug 2001 21:34:10 +0000
parents 79d88b10a7d9
children 248972c26eee
files libmpeg2/decode.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpeg2/decode.c	Wed Aug 22 21:25:24 2001 +0000
+++ b/libmpeg2/decode.c	Wed Aug 22 21:34:10 2001 +0000
@@ -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];