Commit edabd5fd authored by pulento's avatar pulento

- Segfault fixed when liba52 dynamic library isn't found.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@449 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 111724b3
......@@ -1490,7 +1490,9 @@ int find_codec_parameters(AVFormatContext *ic)
ret = -1;
goto the_end;
}
avcodec_open(&st->codec, codec);
ret = avcodec_open(&st->codec, codec);
if (ret < 0)
goto the_end;
}
}
pktl = av_mallocz(sizeof(AVPacketList));
......
......@@ -80,7 +80,7 @@ static int a52_decode_init(AVCodecContext *avctx)
s->handle = dlopen(liba52name, RTLD_LAZY);
if (!s->handle)
{
fprintf(stderr, "A52 library %s could not be opened: %s\n", liba52name, dlerror());
fprintf(stderr, "A52 library %s could not be opened! \n%s\n", liba52name, dlerror());
return -1;
}
s->a52_init = (a52_state_t* (*)(uint32_t)) dlsymm(s->handle, "a52_init");
......
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