Opened 17 years ago
Closed 17 years ago
#672 closed defect (fixed)
FTBS: Cannot disable a codec or muxer from FFmpeg
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | build system |
Version: | HEAD | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
I noticed that a change in FFmpeg SVN on November 27th (rev 7175) causes
an error in MPlayer. It fails to build from sources when using an option
to disable a codec or muxer from FFmpeg.
This is an example to reproduce the problem:
$ ./configure --disable-muxer=mov
$ make
Then the compilation fails with the following error:
allformats.c: In function `av_register_all':
allformats.c:99: error: `ENABLE_MOV_MUXER' undeclared (first use in
this function)
The code in libavformat/allformats.c expects that the macro
ENABLE_MOV_MUXER is always defined. It expects a "1" if the item
is to be used, or a "0" if not the case. But the auto-generated
"config.h" doesn't define a macro for a disabled item, leaving
undeclared symbols in the source.
I think the "configure" script has to be fixed to generate a "config.h"
compatible with the one generated by FFmpeg's "configure". A possible
workaround is to get a few lines from the "configure" of FFmeg and
use them in "configure" of MPlayer to generate the same set of macro.
This is a little intrusive therefore perhaps you may want to solve
the issue differently.
Attachments (1)
Change History (3)
by , 17 years ago
Attachment: | configure_fix_ffmpeg.diff added |
---|
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been fixed in revision 21735 of SVN, thanks.
Fix the lists of FFmpeg codecs and muxers