mirror of https://github.com/mpv-player/mpv
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:
parent
73cc418a75
commit
feda725791
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue