[MPlayer-dev-eng] Win32 codecs

Torinthiel torinthiel at wp.pl
Thu Apr 29 14:32:55 CEST 2004


If one tries to compile MPlayer with USE_WIN32DLL defined than he's in
deep shit.
libmpcodecs/ad_acm.c includes then two files: 
first one is
loader/wineacm.h at line 11
which in turn includes loader/wine/msacmdrv.h on line 10
which includes loader/wine/msacm.h on line 9
which defines FOURCC on line 24

second file included by ad_acm.c is
libmpcodecs/ad_internal.h at line 13
which includes libmpdemux/stheader.h at line 7
which includes libmpdemux/aviheader.h at line 4
which defines the same FOURCC on line 31

all of the includes (except wineacm and ad_internal) are unconditional,
so if only USE_WIN32DLL is defined the compilation will FAIL on
libmpcodecs/ad_acm.o

Second problem with the same file is stheader.h including
libmpdemux/ms_hdr.h on line 5, which defines 
struct mpeglayer3waveformat_tag and type MPEGLAYER3WAVEFORMAT

The same are however defined in loader/wine/mmreg.h which is included by
msacm.h
Torinthiel


-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)wp(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040429/fd659fba/attachment.pgp>


More information about the MPlayer-dev-eng mailing list