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. --- stream/stream_ffmpeg.c | 1 - 1 file changed, 1 deletion(-) (limited to 'stream/stream_ffmpeg.c') diff --git a/stream/stream_ffmpeg.c b/stream/stream_ffmpeg.c index 343381afb0..101b112448 100644 --- a/stream/stream_ffmpeg.c +++ b/stream/stream_ffmpeg.c @@ -88,7 +88,6 @@ static int open_f(stream_t *stream, int mode, void *opts, int *file_format) int64_t size; int dummy; - av_register_all(); if (mode == STREAM_READ) flags = URL_RDONLY; else if (mode == STREAM_WRITE) -- cgit v1.2.3