Commit 1cf9722d authored by stefano's avatar stefano

Make register_avcodec() call avcodec_init().

This avoids the possibility to use a registered codec without to first
initialize libavcodec, which resulted in an unexpected behaviour.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16131 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1aac24a2
......@@ -31,7 +31,7 @@
#define LIBAVCODEC_VERSION_MAJOR 52
#define LIBAVCODEC_VERSION_MINOR 6
#define LIBAVCODEC_VERSION_MICRO 1
#define LIBAVCODEC_VERSION_MICRO 2
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
......
......@@ -90,6 +90,7 @@ AVCodec *av_codec_next(AVCodec *c){
void register_avcodec(AVCodec *codec)
{
AVCodec **p;
avcodec_init();
p = &first_avcodec;
while (*p != NULL) p = &(*p)->next;
*p = codec;
......
......@@ -50,7 +50,6 @@ void av_register_all(void)
return;
initialized = 1;
avcodec_init();
avcodec_register_all();
/* (de)muxers */
......
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