fixing avi files.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@243 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-09-24 04:41:15 +00:00
parent 114501d2cb
commit ab8d562f8b

View file

@ -1173,7 +1173,7 @@ qboolean Media_ShowFilm(void)
lpbi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(pgf, currentframe); // Grab Data From The AVI Stream lpbi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(pgf, currentframe); // Grab Data From The AVI Stream
currentframe++; currentframe++;
if (!lpbi)//oops if (!lpbi || lpbi->biBitCount != 24)//oops
{ {
SCR_SetUpToDrawConsole(); SCR_SetUpToDrawConsole();
#ifdef SWQUAKE #ifdef SWQUAKE
@ -1184,7 +1184,7 @@ qboolean Media_ShowFilm(void)
} }
else else
{ {
Media_ShowFrameBGR_24_Flip(staticfilmimage, imagewidth, imageheight); Media_ShowFrameBGR_24_Flip((char*)lpbi+lpbi->biSize, lpbi->biWidth, lpbi->biHeight);
} }
if (pavisound) if (pavisound)
@ -1605,9 +1605,6 @@ void Media_RecordFilm_f (void){}
void M_Menu_Media_f (void) {} void M_Menu_Media_f (void) {}
char *Media_NextTrack(void) {return NULL;} char *Media_NextTrack(void) {return NULL;}
void Media_ShowFrame(qbyte *framedata, int inwidth, int inheight, qbyte *bgrandupsidedown) {}
void Media_ShowFrame8bit(qbyte *framedata, int inwidth, int inheight, qbyte *palette) {}
int filmtexture; int filmtexture;
media_filmtype_t media_filmtype; media_filmtype_t media_filmtype;