# HG changeset patch # User alex # Date 1047646009 0 # Node ID 0ef45318414a1cde2d8607eb7a1d7f943e8fb9a0 # Parent 88eabd7a3b3bfe3f255d9eeba2585ac965e19060 a warning fix and rgb15/16 support by Sascha Sommer diff -r 88eabd7a3b3b -r 0ef45318414a loader/dshow/DS_VideoDecoder.c --- a/loader/dshow/DS_VideoDecoder.c Thu Mar 13 15:50:41 2003 +0000 +++ b/loader/dshow/DS_VideoDecoder.c Fri Mar 14 12:46:49 2003 +0000 @@ -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