Opened 17 years ago

Closed 17 years ago

#672 closed defect (fixed)

FTBS: Cannot disable a codec or muxer from FFmpeg

Reported by: nbk@… Owned by: diego@…
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)

configure_fix_ffmpeg.diff (8.1 KB ) - added by nbk@… 17 years ago.
Fix the lists of FFmpeg codecs and muxers

Download all attachments as: .zip

Change History (3)

by nbk@…, 17 years ago

Attachment: configure_fix_ffmpeg.diff added

Fix the lists of FFmpeg codecs and muxers

comment:1 by nbk@…, 17 years ago

comment:2 by nbk@…, 17 years ago

Resolution: fixed
Status: newclosed

This has been fixed in revision 21735 of SVN, thanks.

Note: See TracTickets for help on using tickets.