[Ffmpeg-cvslog] r8391 - trunk/libavcodec/mpegvideo.c

michael subversion
Tue Mar 13 23:51:11 CET 2007


Author: michael
Date: Tue Mar 13 23:51:11 2007
New Revision: 8391

Modified:
   trunk/libavcodec/mpegvideo.c

Log:
remove silly static int done protecting the initalization of 32 elements to 1


Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c	(original)
+++ trunk/libavcodec/mpegvideo.c	Tue Mar 13 23:51:11 2007
@@ -625,13 +625,10 @@ void MPV_decode_defaults(MpegEncContext 
 
 #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;




More information about the ffmpeg-cvslog mailing list