[FFmpeg-cvslog] r10783 - in trunk: libavcodec/allcodecs.c libavformat/allformats.c

aurel subversion
Thu Oct 18 23:03:10 CEST 2007


Author: aurel
Date: Thu Oct 18 23:03:10 2007
New Revision: 10783

Log:
small simplification

Modified:
   trunk/libavcodec/allcodecs.c
   trunk/libavformat/allformats.c

Modified: trunk/libavcodec/allcodecs.c
==============================================================================
--- trunk/libavcodec/allcodecs.c	(original)
+++ trunk/libavcodec/allcodecs.c	Thu Oct 18 23:03:10 2007
@@ -53,9 +53,9 @@
  */
 void avcodec_register_all(void)
 {
-    static int inited = 0;
+    static int inited;
 
-    if (inited != 0)
+    if (inited)
         return;
     inited = 1;
 

Modified: trunk/libavformat/allformats.c
==============================================================================
--- trunk/libavformat/allformats.c	(original)
+++ trunk/libavformat/allformats.c	Thu Oct 18 23:03:10 2007
@@ -43,9 +43,9 @@ void av_register_rtp_dynamic_payload_han
  */
 void av_register_all(void)
 {
-    static int inited = 0;
+    static int inited;
 
-    if (inited != 0)
+    if (inited)
         return;
     inited = 1;
 




More information about the ffmpeg-cvslog mailing list