aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-22 23:57:45 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-22 23:57:45 +0000
commit950a345ed022615b4e2c59e39688c1f302869572 (patch)
treef513cb57d42a26d928c820cd363161e873138148
parentffea152c83cfc74831c86bc0c639c8370ed9ca71 (diff)
init libavcodec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6510 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpcodecs/vd_svq1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libmpcodecs/vd_svq1.c b/libmpcodecs/vd_svq1.c
index c9bb774658..7c5941f31e 100644
--- a/libmpcodecs/vd_svq1.c
+++ b/libmpcodecs/vd_svq1.c
@@ -24,8 +24,19 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
return CONTROL_UNKNOWN;
}
+extern int avcodec_inited;
+
// init driver
static int init(sh_video_t *sh){
+
+#ifdef USE_LIBAVCODEC
+ if(!avcodec_inited){
+ avcodec_init();
+ avcodec_register_all();
+ avcodec_inited=1;
+ }
+#endif
+
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YVU9)) return 0;
sh->context=malloc(sizeof(svq1_t));