[MPlayer-cvslog] r30645 - in trunk/libmpcodecs: vd_dmo.c vd_dshow.c
reimar
subversion at mplayerhq.hu
Thu Feb 18 23:28:56 CET 2010
Author: reimar
Date: Thu Feb 18 23:28:55 2010
New Revision: 30645
Log:
Call mpcodecs_config_vo with the proper image format for dmo and dshow codecs.
Modified:
trunk/libmpcodecs/vd_dmo.c
trunk/libmpcodecs/vd_dshow.c
Modified: trunk/libmpcodecs/vd_dmo.c
==============================================================================
--- trunk/libmpcodecs/vd_dmo.c Thu Feb 18 22:48:49 2010 (r30644)
+++ trunk/libmpcodecs/vd_dmo.c Thu Feb 18 23:28:55 2010 (r30645)
@@ -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:
Modified: trunk/libmpcodecs/vd_dshow.c
==============================================================================
--- trunk/libmpcodecs/vd_dshow.c Thu Feb 18 22:48:49 2010 (r30644)
+++ trunk/libmpcodecs/vd_dshow.c Thu Feb 18 23:28:55 2010 (r30645)
@@ -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:
More information about the MPlayer-cvslog
mailing list