[Mplayer-cvslog] CVS: main dll_init.c,1.10,1.11

GEREOFFY arpi_esp at users.sourceforge.net
Tue Apr 17 21:23:49 CEST 2001


Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv2480

Modified Files:
	dll_init.c 
Log Message:
BGR modes with VfW codecs fixed - biCompression must be 0 for BGR...

Index: dll_init.c
===================================================================
RCS file: /cvsroot/mplayer/main/dll_init.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** dll_init.c	2001/04/16 03:01:46	1.10
--- dll_init.c	2001/04/17 19:23:47	1.11
***************
*** 103,106 ****
--- 103,107 ----
  int init_video_codec(){
    HRESULT ret;
+   int yuv=0;
    unsigned int outfmt=sh_video->codec->outfmt[sh_video->outfmtidx];
  
***************
*** 147,150 ****
--- 148,152 ----
    case IMGFMT_IYUV:
        sh_video->o_bih.biBitCount=12;
+       yuv=1;
        break;
  
***************
*** 154,157 ****
--- 156,160 ----
    case IMGFMT_YVYU:
        sh_video->o_bih.biBitCount=16;
+       yuv=1;
        break;
  
***************
*** 190,194 ****
    }
  
!   if(!(sh_video->codec->outflags[sh_video->outfmtidx] & CODECS_FLAG_YUVHACK))
  	 sh_video->o_bih.biCompression = outfmt;
  
--- 193,197 ----
    }
  
!   if(yuv && !(sh_video->codec->outflags[sh_video->outfmtidx] & CODECS_FLAG_YUVHACK))
  	 sh_video->o_bih.biCompression = outfmt;
  
***************
*** 245,249 ****
    }
  
!   if(sh_video->codec->outflags[sh_video->outfmtidx] & CODECS_FLAG_YUVHACK)
      sh_video->o_bih.biCompression = outfmt;
  
--- 248,252 ----
    }
  
!   if(yuv && sh_video->codec->outflags[sh_video->outfmtidx] & CODECS_FLAG_YUVHACK)
      sh_video->o_bih.biCompression = outfmt;
  


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list