[MPlayer-dev-eng] [patch] just a little patch for solve compilation problem on FreeBSD

Diego Biurrun diego at biurrun.de
Sun Nov 12 11:51:07 CET 2006


On Sun, Nov 12, 2006 at 12:03:32AM -0500, Rich Felker wrote:
> On Sun, Nov 12, 2006 at 05:28:35AM +0100, Diego Biurrun wrote:
> > On Fri, Nov 10, 2006 at 02:14:15AM +0300, yopt wrote:
> > > 
> > > I download MPlayer from svn (revision 20823) and compiled under FreeBSD
> > > 6.0-Release. And I got some problems, I could not compile
> > > libavcodec/imc.c with this error:
> > > 
> > > libavcodec/libavcodec.a(imc.o)(.text+0x133): In function
> > > `imc_decode_init': : undefined reference to `log2'
> > > libavcodec/libavcodec.a(imc.o)(.text+0x67d): In function
> > > `imc_decode_frame': : undefined reference to `log2'
> > > libavcodec/libavcodec.a(imc.o)(.text+0xb91): In function
> > > `imc_decode_frame': : undefined reference to `log2'
> > > 
> > > because I have not function with a name "log2" in my <math.h>.
> > > 
> > > I offer a little patch in attachment to solve this problem.
> > 
> > This patch is untested, it breaks playback.  Rejected.
> 
> This is because av_log2 is an integer log2, no?

IIUC, yes.

Diego




More information about the MPlayer-dev-eng mailing list