OSDN Git Service

small simplification
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 18 Oct 2007 21:03:10 +0000 (21:03 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 18 Oct 2007 21:03:10 +0000 (21:03 +0000)
Originally committed as revision 10783 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/allcodecs.c
libavformat/allformats.c

index 90718dd..7294e7f 100644 (file)
@@ -53,9 +53,9 @@
  */
 void avcodec_register_all(void)
 {
-    static int inited = 0;
+    static int inited;
 
-    if (inited != 0)
+    if (inited)
         return;
     inited = 1;
 
index 515e6f4..ad2d30a 100644 (file)
@@ -43,9 +43,9 @@ void av_register_rtp_dynamic_payload_handlers(void);
  */
 void av_register_all(void)
 {
-    static int inited = 0;
+    static int inited;
 
-    if (inited != 0)
+    if (inited)
         return;
     inited = 1;