From 98942fb2c98e26a162623c31c8bf00e04012fdd2 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 18 Oct 2007 21:03:10 +0000 Subject: small simplification Originally committed as revision 10783 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/allcodecs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/allcodecs.c') diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 90718ddf2a..7294e7f082 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.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; -- cgit v1.2.3