diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-09-04 08:11:31 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:15:51 +0200 |
commit | f2899d96eecc7de5a3f4b2ef231e514085e467e0 (patch) | |
tree | 43afa4796389fd043b0b6d8172a71b069598bb0b /libmpcodecs/vf_lavcdeint.c | |
parent | a92b4adf61c4f2a77822326d18b983e7e8fb21fb (diff) | |
download | mpv-f2899d96eecc7de5a3f4b2ef231e514085e467e0.tar.bz2 mpv-f2899d96eecc7de5a3f4b2ef231e514085e467e0.tar.xz |
Add central init_avcodec() to avoid duplicated libavcodec init code
Patch by Vlad Seryakov, vseryakov gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32043 b3059339-0415-0410-9bf9-f77b7e298cf2
Refactor more instances of avcodec_initialized handling into init_avcodec().
This is a leftover from the previous commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32044 b3059339-0415-0410-9bf9-f77b7e298cf2
Add missing #include for vd_ffmpeg.h; fixes the warning:
libmpcodecs/vf_zrmjpeg.c:472: warning: implicit declaration of function 'init_avcodec'
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32176 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_lavcdeint.c')
-rw-r--r-- | libmpcodecs/vf_lavcdeint.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libmpcodecs/vf_lavcdeint.c b/libmpcodecs/vf_lavcdeint.c index 8d2cca43c0..fd564e72af 100644 --- a/libmpcodecs/vf_lavcdeint.c +++ b/libmpcodecs/vf_lavcdeint.c @@ -27,9 +27,9 @@ #include "img_format.h" #include "mp_image.h" #include "vf.h" +#include "vd_ffmpeg.h" #include "libavcodec/avcodec.h" -extern int avcodec_initialized; struct vf_priv_s { @@ -174,12 +174,7 @@ vf_open(vf_instance_t *vf, char *args) /* This may not technically be necessary just for a deinterlace, * but it seems like a good idea. */ - if(!avcodec_initialized) - { - avcodec_init(); - avcodec_register_all(); - avcodec_initialized=1; - } + init_avcodec(); return 1; } |