fix for the no video/black screen with some dmo/wmv9 movies

(for some videos: bits=12 and once /8 the allocated buffer is 50% too small)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10888 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2003-09-20 00:52:51 +00:00
parent 73cc418a75
commit feda725791
1 changed files with 3 additions and 2 deletions

View File

@ -463,8 +463,9 @@ int DMO_VideoDecoder_SetDestFmt(DMO_VideoDecoder *this, int bits, unsigned int c
this->iv.m_obh.biSize = sizeof(BITMAPINFOHEADER);
this->iv.m_obh.biCompression=csp;
this->iv.m_obh.biBitCount=bits;
this->iv.m_obh.biSizeImage=labs(this->iv.m_obh.biBitCount*
this->iv.m_obh.biWidth*this->iv.m_obh.biHeight)>>3;
this->iv.m_obh.biSizeImage = labs(this->iv.m_obh.biWidth * this->iv.m_obh.biHeight)
* ((this->iv.m_obh.biBitCount + 7) / 8);
}
}
this->m_sDestType.lSampleSize = this->iv.m_obh.biSizeImage;