1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

small simplification

Originally committed as revision 10783 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2007-10-18 21:03:10 +00:00
parent bbfc038f09
commit 98942fb2c9
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;