[Mplayer-cvslog] CVS: main/loader/dshow DS_VideoDecoder.c,1.25,1.26
Alex Beregszaszi
alex at mplayerhq.hu
Fri Mar 14 13:47:09 CET 2003
Update of /cvsroot/mplayer/main/loader/dshow
In directory mail:/var/tmp.root/cvs-serv5890
Modified Files:
DS_VideoDecoder.c
Log Message:
a warning fix and rgb15/16 support by Sascha Sommer
Index: DS_VideoDecoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/dshow/DS_VideoDecoder.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- DS_VideoDecoder.c 25 Feb 2003 16:16:37 -0000 1.25
+++ DS_VideoDecoder.c 14 Mar 2003 12:46:49 -0000 1.26
@@ -80,7 +80,7 @@
{16, fccYVYU, &MEDIASUBTYPE_YVYU, CAP_YVYU},
{12, fccI420, &MEDIASUBTYPE_I420, CAP_I420},
{9, fccYVU9, &MEDIASUBTYPE_YVU9, CAP_YVU9},
- {0},
+ {0, 0, 0, 0},
};
@@ -451,7 +451,10 @@
}
if (ok) {
- this->iv.m_obh.biBitCount=bits;
+ if (bits == 15)
+ this->iv.m_obh.biBitCount=16;
+ else
+ this->iv.m_obh.biBitCount=bits;
if( bits == 15 || bits == 16 ) {
this->iv.m_obh.biSize=sizeof(BITMAPINFOHEADER)+12;
this->iv.m_obh.biCompression=3;//BI_BITFIELDS
More information about the MPlayer-cvslog
mailing list