Opened 13 years ago

Closed 13 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: Analyzed by developer:


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@… 13 years ago.
Fix the lists of FFmpeg codecs and muxers

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by nbk@…

Fix the lists of FFmpeg codecs and muxers

comment:1 Changed 13 years ago by nbk@…

comment:2 Changed 13 years ago by nbk@…

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.