Commit 0617c36b authored by michaelni's avatar michaelni

multiple init bugfix (patch by Alex Beregszaszi <alex@naxine.org>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@371 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ab355c12
......@@ -385,12 +385,24 @@ int avpicture_get_size(int pix_fmt, int width, int height)
/* must be called before any other functions */
void avcodec_init(void)
{
static int inited = 0;
if (inited != 0)
return;
inited = 1;
dsputil_init();
}
/* simple call to use all the codecs */
void avcodec_register_all(void)
{
static int inited = 0;
if (inited != 0)
return;
inited = 1;
/* encoders */
#ifdef CONFIG_ENCODERS
register_avcodec(&ac3_encoder);
......
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