[Mplayer-cvslog] CVS: main/libmpcodecs vd_svq1.c,1.1,1.2

Arpi of Ize arpi at mplayerhq.hu
Sun Jun 23 01:57:48 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv28988

Modified Files:
	vd_svq1.c 
Log Message:
init libavcodec


Index: vd_svq1.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_svq1.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- vd_svq1.c	22 Jun 2002 23:09:40 -0000	1.1
+++ vd_svq1.c	22 Jun 2002 23:57:45 -0000	1.2
@@ -24,8 +24,19 @@
     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));




More information about the MPlayer-cvslog mailing list