small simplification

Originally committed as revision 10783 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Aurelien Jacobs 17 years ago
parent bbfc038f09
commit 98942fb2c9
  1. 4
      libavcodec/allcodecs.c
  2. 4
      libavformat/allformats.c

@ -53,9 +53,9 @@
*/
void avcodec_register_all(void)
{
static int inited = 0;
static int inited;
if (inited != 0)
if (inited)
return;
inited = 1;

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

Loading…
Cancel
Save