mirror of https://github.com/mpv-player/mpv
Call mpcodecs_config_vo with the proper image format for dmo and dshow codecs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30645 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d58a991207
commit
0f86bc16ba
|
@ -52,8 +52,8 @@ static int init(sh_video_t *sh){
|
|||
mp_msg(MSGT_DECVIDEO,MSGL_HINT,MSGTR_DownloadCodecPackage);
|
||||
return 0;
|
||||
}
|
||||
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0;
|
||||
out_fmt=sh->codec->outfmt[sh->outfmtidx];
|
||||
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0;
|
||||
switch(out_fmt){
|
||||
case IMGFMT_YUY2:
|
||||
case IMGFMT_UYVY:
|
||||
|
|
|
@ -80,8 +80,8 @@ static int init(sh_video_t *sh){
|
|||
mp_msg(MSGT_DECVIDEO,MSGL_HINT,MSGTR_DownloadCodecPackage);
|
||||
return 0;
|
||||
}
|
||||
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0;
|
||||
out_fmt=sh->codec->outfmt[sh->outfmtidx];
|
||||
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0;
|
||||
switch(out_fmt){
|
||||
case IMGFMT_YUY2:
|
||||
case IMGFMT_UYVY:
|
||||
|
|
Loading…
Reference in New Issue