diff options
author | 2006-07-02 03:59:36 +0000 | |
---|---|---|
committer | 2006-07-02 03:59:36 +0000 | |
commit | 9d9a15d18572d1450fd8fef495be3629bf85c995 (patch) | |
tree | bfbc498db3d3ada10c8cfe64c9381bce66533419 /loader/dshow/DS_VideoDecoder.c | |
parent | 1ad9af38b5120af85129d3b74834c7ed9690e7f3 (diff) |
rm unnecesary casts from void* - part 2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18883 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/DS_VideoDecoder.c')
-rw-r--r-- | loader/dshow/DS_VideoDecoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/dshow/DS_VideoDecoder.c b/loader/dshow/DS_VideoDecoder.c index 5ed464f056..7f1cf72bae 100644 --- a/loader/dshow/DS_VideoDecoder.c +++ b/loader/dshow/DS_VideoDecoder.c @@ -114,7 +114,7 @@ DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEAD bihs = (format->biSize < (int) sizeof(BITMAPINFOHEADER)) ? sizeof(BITMAPINFOHEADER) : format->biSize; - this->iv.m_bh = (BITMAPINFOHEADER*)malloc(bihs); + this->iv.m_bh = malloc(bihs); memcpy(this->iv.m_bh, format, bihs); this->iv.m_State = STOP; @@ -126,7 +126,7 @@ DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEAD this->iv.m_bCapable16b = true; bihs += sizeof(VIDEOINFOHEADER) - sizeof(BITMAPINFOHEADER); - this->m_sVhdr = (VIDEOINFOHEADER*)malloc(bihs); + this->m_sVhdr = malloc(bihs); memset(this->m_sVhdr, 0, bihs); memcpy(&this->m_sVhdr->bmiHeader, this->iv.m_bh, this->iv.m_bh->biSize); this->m_sVhdr->rcSource.left = this->m_sVhdr->rcSource.top = 0; |