summaryrefslogtreecommitdiffstats
path: root/dec_video.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-21 21:34:56 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-21 21:34:56 +0000
commitffe1e2c3e3bef206f6660b049c4df5173fbb934f (patch)
treead5a9e9e20a45d706563b31743850dd706325d6a /dec_video.c
parentc8f1f9576664f9086ccbf6da94ba867c3caa24e8 (diff)
downloadmpv-ffe1e2c3e3bef206f6660b049c4df5173fbb934f.tar.bz2
mpv-ffe1e2c3e3bef206f6660b049c4df5173fbb934f.tar.xz
FFmpeg audio codecs support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1928 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r--dec_video.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dec_video.c b/dec_video.c
index 0898b5d6d8..13a3ad221b 100644
--- a/dec_video.c
+++ b/dec_video.c
@@ -50,9 +50,10 @@ extern int init_video_codec(sh_video_t *sh_video,int ex);
#ifdef USE_LIBAVCODEC
#include "libavcodec/avcodec.h"
- AVCodec *lavc_codec=NULL;
- AVCodecContext lavc_context;
- AVPicture lavc_picture;
+ static AVCodec *lavc_codec=NULL;
+ static AVCodecContext lavc_context;
+ static AVPicture lavc_picture;
+ int avcodec_inited=0;
#endif
#ifndef NEW_DECORE
@@ -306,7 +307,6 @@ switch(sh_video->codec->driver){
mp_msg(MSGT_DECVIDEO,MSGL_ERR,"MPlayer was compiled WITHOUT libavcodec support!\n");
return 0;
#else
- static int avcodec_inited=0;
mp_msg(MSGT_DECVIDEO,MSGL_V,"FFmpeg's libavcodec video codec\n");
if(!avcodec_inited){
avcodec_init();