# HG changeset patch # User pl # Date 1064019171 0 # Node ID 858e2605726c1e60fd57a5e8fd40744252c45a39 # Parent ed0fcc08c9884b6c28d849ff5f315ccf05e6ced7 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) diff -r ed0fcc08c988 -r 858e2605726c loader/dmo/DMO_VideoDecoder.c --- a/loader/dmo/DMO_VideoDecoder.c Sat Sep 20 00:51:51 2003 +0000 +++ b/loader/dmo/DMO_VideoDecoder.c Sat Sep 20 00:52:51 2003 +0000 @@ -463,8 +463,9 @@ 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;