summaryrefslogtreecommitdiffstats
path: root/stream
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 /stream
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 'stream')
-rw-r--r--stream/stream_ffmpeg.c1
1 files changed, 0 insertions, 1 deletions
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)