summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_screenshot.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-18 00:28:22 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-18 00:57:05 +0300
commita4f41308190b79d79a5ac7a50791332e5c1d5600 (patch)
tree5207b45480ff2317544e17118a58e321160f856c /libmpcodecs/vf_screenshot.c
parent4e2b15fc5e5f457f62605262a46962b5fd63ff99 (diff)
downloadmpv-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 'libmpcodecs/vf_screenshot.c')
-rw-r--r--libmpcodecs/vf_screenshot.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libmpcodecs/vf_screenshot.c b/libmpcodecs/vf_screenshot.c
index 1b5d575fba..655a014886 100644
--- a/libmpcodecs/vf_screenshot.c
+++ b/libmpcodecs/vf_screenshot.c
@@ -301,7 +301,6 @@ static int vf_open(vf_instance_t *vf, char *args)
vf->priv->outbuffer=0;
vf->priv->ctx=0;
vf->priv->avctx = avcodec_alloc_context();
- avcodec_register_all();
if (avcodec_open(vf->priv->avctx, avcodec_find_encoder(CODEC_ID_PNG))) {
mp_msg(MSGT_VFILTER, MSGL_FATAL, "Could not open libavcodec PNG encoder\n");
return 0;