aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-01-28 07:47:48 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-01-28 07:47:48 +0000
commitf47e909d0946fb0963b7ec9a8a9fbf796dae2011 (patch)
treeec96a9dd7e08c78fea0cc4febe4bd3476df26c3b /libmpdemux
parent0d681a16cfd7d2d77aca79d82908129fb4b20cc8 (diff)
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
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/muxer_avi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/muxer_avi.c b/libmpdemux/muxer_avi.c
index b4db7b4a99..f98f4b0002 100644
--- a/libmpdemux/muxer_avi.c
+++ b/libmpdemux/muxer_avi.c
@@ -191,9 +191,11 @@ static void avifile_write_header(muxer_t *muxer){
switch(muxer->streams[i]->type){
case MUXER_TYPE_VIDEO:
hdrsize+=muxer->streams[i]->bih->biSize+8; // strf
+ muxer->streams[i]->h.fccHandler = muxer->streams[i]->bih->biCompression;
break;
case MUXER_TYPE_AUDIO:
hdrsize+=WFSIZE(muxer->streams[i]->wf)+8; // strf
+ muxer->streams[i]->h.fccHandler = muxer->streams[i]->wf->wFormatTag;
break;
}
write_avi_list(f,listtypeSTREAMHEADER,hdrsize);