mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
Get rid of another useless cast
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25709 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e356da9b2f
commit
a20fa53d69
@ -135,7 +135,7 @@ DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEAD
|
||||
this->m_sOurType.cbFormat = bihs;
|
||||
this->m_sOurType.pbFormat = (char*)this->m_sVhdr;
|
||||
|
||||
this->m_sVhdr2 = (VIDEOINFOHEADER*)(malloc(sizeof(VIDEOINFOHEADER)+12));
|
||||
this->m_sVhdr2 = malloc(sizeof(VIDEOINFOHEADER)+12);
|
||||
memcpy(this->m_sVhdr2, this->m_sVhdr, sizeof(VIDEOINFOHEADER));
|
||||
memset((char*)this->m_sVhdr2 + sizeof(VIDEOINFOHEADER), 0, 12);
|
||||
this->m_sVhdr2->bmiHeader.biCompression = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user