Set fcchandler according to fourcc, some players (Archos Jukebox) need it, also imho a player should use that field for determining fourcc, hopefully it doesn't break anything

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11864 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2004-01-28 07:47:48 +00:00
parent 0d681a16cf
commit f47e909d09
1 changed files with 2 additions and 0 deletions

View File

@ -191,9 +191,11 @@ static void avifile_write_header(muxer_t *muxer){
switch(muxer->streams[i]->type){ switch(muxer->streams[i]->type){
case MUXER_TYPE_VIDEO: case MUXER_TYPE_VIDEO:
hdrsize+=muxer->streams[i]->bih->biSize+8; // strf hdrsize+=muxer->streams[i]->bih->biSize+8; // strf
muxer->streams[i]->h.fccHandler = muxer->streams[i]->bih->biCompression;
break; break;
case MUXER_TYPE_AUDIO: case MUXER_TYPE_AUDIO:
hdrsize+=WFSIZE(muxer->streams[i]->wf)+8; // strf hdrsize+=WFSIZE(muxer->streams[i]->wf)+8; // strf
muxer->streams[i]->h.fccHandler = muxer->streams[i]->wf->wFormatTag;
break; break;
} }
write_avi_list(f,listtypeSTREAMHEADER,hdrsize); write_avi_list(f,listtypeSTREAMHEADER,hdrsize);