Mercurial > mplayer.hg
diff loader/dshow/DS_VideoDecoder.c @ 18878:3bf0d70b4c7f
rm unnecesary casts from void* - part 2
author | reynaldo |
---|---|
date | Sun, 02 Jul 2006 03:59:36 +0000 |
parents | 11cee15b1a8f |
children | 2934974c366a |
line wrap: on
line diff
--- a/loader/dshow/DS_VideoDecoder.c Sat Jul 01 22:15:37 2006 +0000 +++ b/loader/dshow/DS_VideoDecoder.c Sun Jul 02 03:59:36 2006 +0000 @@ -114,7 +114,7 @@ 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 @@ 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;