[Mplayer-cvslog] CVS: main/loader/dshow DS_VideoDecoder.c,1.18,1.19
Arpi of Ize
arpi at mplayer.dev.hu
Thu Jan 17 01:49:24 CET 2002
Update of /cvsroot/mplayer/main/loader/dshow
In directory mplayer:/var/tmp.root/cvs-serv27978
Modified Files:
DS_VideoDecoder.c
Log Message:
possible sig11 fixed - noticed by Fredrik Kuivinen <freku045 at student.liu.se>
Index: DS_VideoDecoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/dshow/DS_VideoDecoder.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- DS_VideoDecoder.c 4 Jan 2002 13:42:18 -0000 1.18
+++ DS_VideoDecoder.c 17 Jan 2002 00:49:21 -0000 1.19
@@ -104,10 +104,10 @@
bihs = (format->biSize < (int) sizeof(BITMAPINFOHEADER)) ?
sizeof(BITMAPINFOHEADER) : format->biSize;
- bihs = sizeof(VIDEOINFOHEADER) - sizeof(BITMAPINFOHEADER) + bihs;
this->iv.m_bh = (BITMAPINFOHEADER*)malloc(bihs);
memcpy(this->iv.m_bh, format, bihs);
+
this->iv.m_State = STOP;
//this->iv.m_pFrame = 0;
this->iv.m_Mode = DIRECT;
@@ -116,6 +116,7 @@
this->iv.m_fQuality = 0.0f;
this->iv.m_bCapable16b = true;
+ bihs += sizeof(VIDEOINFOHEADER) - sizeof(BITMAPINFOHEADER);
this->m_sVhdr = (VIDEOINFOHEADER*)malloc(bihs);
memset(this->m_sVhdr, 0, bihs);
memcpy(&this->m_sVhdr->bmiHeader, this->iv.m_bh, this->iv.m_bh->biSize);
More information about the MPlayer-cvslog
mailing list