Commit 98942fb2 authored by Aurelien Jacobs's avatar Aurelien Jacobs

small simplification

Originally committed as revision 10783 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent bbfc038f
...@@ -53,9 +53,9 @@ ...@@ -53,9 +53,9 @@
*/ */
void avcodec_register_all(void) void avcodec_register_all(void)
{ {
static int inited = 0; static int inited;
if (inited != 0) if (inited)
return; return;
inited = 1; inited = 1;
......
...@@ -43,9 +43,9 @@ void av_register_rtp_dynamic_payload_handlers(void); ...@@ -43,9 +43,9 @@ void av_register_rtp_dynamic_payload_handlers(void);
*/ */
void av_register_all(void) void av_register_all(void)
{ {
static int inited = 0; static int inited;
if (inited != 0) if (inited)
return; return;
inited = 1; inited = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment