changeset 4657:e1939f338a0e libavcodec

remove silly static int done protecting the initalization of 32 elements to 1
author michael
date Tue, 13 Mar 2007 22:51:11 +0000
parents f5499f9c2dbe
children 31ebbdad594e
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Tue Mar 13 22:47:59 2007 +0000
+++ b/mpegvideo.c	Tue Mar 13 22:51:11 2007 +0000
@@ -625,13 +625,10 @@
 
 #ifdef CONFIG_ENCODERS
 static void MPV_encode_defaults(MpegEncContext *s){
-    static int done=0;
-
     MPV_common_defaults(s);
 
-    if(!done){
+    {
         int i;
-        done=1;
 
         for(i=-16; i<16; i++){
             default_fcode_tab[i + MAX_MV]= 1;