mirror of https://github.com/mpv-player/mpv
fixed colorspace detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5154 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
804d1af151
commit
1cfe6ec88a
|
@ -52,9 +52,10 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
|
|||
// init driver
|
||||
static int init(sh_video_t *sh){
|
||||
unsigned int out_fmt;
|
||||
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0;
|
||||
if(!init_vfw_video_codec(sh,(sh->codec->driver==VFM_VFWEX))) return 0;
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: Win32 video codec init OK!\n");
|
||||
return mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// uninit driver
|
||||
|
|
Loading…
Reference in New Issue