mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
init libavcodec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6510 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ffea152c83
commit
950a345ed0
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user