[MPlayer-dev-eng] [PATCH] Fix compilation on NetBSD

Diego Biurrun diego at biurrun.de
Wed Sep 28 21:50:50 CEST 2005


On Wed, Sep 28, 2005 at 09:58:33PM +0300, Jan Knutar wrote:
> On Wednesday 28 September 2005 02:07, Diego Biurrun wrote:
> 
> <lrintf problems, avutil.h not defining lrintf unless HAVE_AV_CONFIG_H is defined>
> 
> > Look at libvo/jpeg_enc.c, it has the same problem and a more or less
> > clean solution.
> 
> Right. jpeg_enc is written as if it was inside ffmpeg. When I define
> HAVE_AV_CONFIG_H before including avutil.h, that also means
> that malloc, free and printf among others get disabled. I suppose
> one could just replace those in vf_qp.c with the av_ equivalents...

Yes, you could.  I'm not sure what the best solution is.  Anyone?

> Also replace the printf with mp_msg. This either requires an
> #include "mp_msg.h" to be added to mp_image.h (ugly), or then
> #include "mp_msg.h" to be added or moved in nearly every
> file in libvo/ (sigh). 

Huh?  There is no printf in vf_qp.c, besides many files in libvo/
already #include mp_msg.h...

Diego




More information about the MPlayer-dev-eng mailing list