init libavcodec

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6510 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-06-22 23:57:45 +00:00
parent ffea152c83
commit 950a345ed0
1 changed files with 11 additions and 0 deletions

View File

@ -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));