summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_lavc.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_lavc.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_lavc.c')
-rw-r--r--libmpcodecs/vf_lavc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libmpcodecs/vf_lavc.c b/libmpcodecs/vf_lavc.c
index c31044ba21..ba870a8b85 100644
--- a/libmpcodecs/vf_lavc.c
+++ b/libmpcodecs/vf_lavc.c
@@ -27,7 +27,6 @@
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
-#include "vd_ffmpeg.h"
#include "libavcodec/avcodec.h"
struct vf_priv_s {
@@ -138,8 +137,6 @@ static int vf_open(vf_instance_t *vf, char *args){
vf->priv=malloc(sizeof(struct vf_priv_s));
memset(vf->priv,0,sizeof(struct vf_priv_s));
- init_avcodec();
-
vf->priv->codec = (AVCodec *)avcodec_find_encoder_by_name("mpeg1video");
if (!vf->priv->codec) {
mp_tmsg(MSGT_VFILTER,MSGL_ERR,"Cannot find codec '%s' in libavcodec...\n", "mpeg1video");