diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-17 02:13:18 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-17 02:13:18 +0000 |
commit | 1cfe6ec88a525690ee865830fc693178e94abcb1 (patch) | |
tree | a8c70dec5a953b49f4baf0f0de2ef6a9f96fc7f7 /libmpcodecs | |
parent | 804d1af151632ef3c5cf4c40609cefc4810bed5d (diff) | |
download | mpv-1cfe6ec88a525690ee865830fc693178e94abcb1.tar.bz2 mpv-1cfe6ec88a525690ee865830fc693178e94abcb1.tar.xz |
fixed colorspace detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5154 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_vfw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vd_vfw.c b/libmpcodecs/vd_vfw.c index ca736827ea..396cf4e084 100644 --- a/libmpcodecs/vd_vfw.c +++ b/libmpcodecs/vd_vfw.c @@ -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 |