Mercurial > mplayer.hg
comparison dll_init.c @ 2885:7459ddb8b539
for pegasus mjpeg
author | arpi |
---|---|
date | Tue, 13 Nov 2001 22:59:19 +0000 |
parents | 12a0be665dfd |
children | 283eab7c4c8e |
comparison
equal
deleted
inserted
replaced
2884:d69598d847e0 | 2885:7459ddb8b539 |
---|---|
203 | 203 |
204 // Note: DivX.DLL overwrites 4 bytes _AFTER_ the o_bih header, so it corrupts | 204 // Note: DivX.DLL overwrites 4 bytes _AFTER_ the o_bih header, so it corrupts |
205 // the sh_video struct content. We call it with an 1024-byte temp space and | 205 // the sh_video struct content. We call it with an 1024-byte temp space and |
206 // then copy out the data we need: | 206 // then copy out the data we need: |
207 memset(temp,0x77,temp_len); | 207 memset(temp,0x77,temp_len); |
208 // memcpy(temp,sh_video->bih,sizeof(BITMAPINFOHEADER)); | |
209 // sh_video->o_bih.biSize = temp_len; | |
208 | 210 |
209 ret = ICDecompressGetFormat(sh_video->hic, sh_video->bih, temp); | 211 ret = ICDecompressGetFormat(sh_video->hic, sh_video->bih, temp); |
210 if(ret < 0){ | 212 if(ret < 0){ |
211 mp_msg(MSGT_WIN32,MSGL_ERR,"ICDecompressGetFormat failed: Error %d\n", (int)ret); | 213 mp_msg(MSGT_WIN32,MSGL_ERR,"ICDecompressGetFormat failed: Error %d\n", (int)ret); |
212 for (i=0; i < temp_len; i++) mp_msg(MSGT_WIN32, MSGL_DBG2, "%02x ", temp[i]); | 214 for (i=0; i < temp_len; i++) mp_msg(MSGT_WIN32, MSGL_DBG2, "%02x ", temp[i]); |