diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-07-18 00:28:22 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-18 00:57:05 +0300 |
commit | a4f41308190b79d79a5ac7a50791332e5c1d5600 (patch) | |
tree | 5207b45480ff2317544e17118a58e321160f856c /libvo | |
parent | 4e2b15fc5e5f457f62605262a46962b5fd63ff99 (diff) | |
download | mpv-a4f41308190b79d79a5ac7a50791332e5c1d5600.tar.bz2 mpv-a4f41308190b79d79a5ac7a50791332e5c1d5600.tar.xz |
cleanup: do libav* initialization on startup
Do the global initialization of libavcodec and libavformat
(avcodec_register_all(), av_register_all()) immediately on program
startup and remove the initialization calls from various individual
modules that use libavcodec/libavformat functionality.
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_png.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libvo/vo_png.c b/libvo/vo_png.c index 0b5d4a8eca..5ad683ad22 100644 --- a/libvo/vo_png.c +++ b/libvo/vo_png.c @@ -165,7 +165,6 @@ static int preinit(const char *arg) if (subopt_parse(arg, subopts) != 0) { return -1; } - avcodec_register_all(); avctx = avcodec_alloc_context(); if (avcodec_open(avctx, avcodec_find_encoder(CODEC_ID_PNG)) < 0) { uninit(); |