From a4f41308190b79d79a5ac7a50791332e5c1d5600 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Mon, 18 Jul 2011 00:28:22 +0300 Subject: 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. --- libvo/vo_png.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libvo') 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(); -- cgit v1.2.3