a warning fix and rgb15/16 support by Sascha Sommer

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9582 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-03-14 12:46:49 +00:00
parent 1de0afc6a9
commit 722e6286b5
1 changed files with 5 additions and 2 deletions

View File

@ -80,7 +80,7 @@ static ct check[] = {
{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 @@ int DS_VideoDecoder_SetDestFmt(DS_VideoDecoder *this, int bits, unsigned int csp
}
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