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:
parent
bbfc038f09
commit
98942fb2c9
@ -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);
|
|||||||
*/
|
*/
|
||||||
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user