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

Jan Knutar jknutar at nic.fi
Wed Sep 28 20:58:33 CEST 2005


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...

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). 

What an annoying little lrintf!

Maybe the first alternative despite its hackyness would be better...




More information about the MPlayer-dev-eng mailing list