[Ffmpeg-devel] Re: Using libavutil in MPlayer

Måns Rullgård mru
Sat Jul 8 14:44:56 CEST 2006


Baptiste Coudurier <baptiste.coudurier at smartjog.com> writes:

> Reimar D?ffinger wrote:
>> Hello,
>> I'd like to use some of the functions in libavutil in MPlayer to avoid
>> duplicating code.
>> Now, one of these is GET_UTF8 (in libavutil/common.h). The problem is,
>> this is only defined when HAVE_AV_CONFIG_H is defined - but in that
>> case, malloc, printf etc. are defined to the please_use_.. functions.
>> Do you have a suggestion for a non-hacky/ugly solution to this?

Hmm... always define it?

>> And another thing, would moving the LE/BE_16/32 macros from
>> libavcodec/avcodec.h to libavutil a good/acceptable thing?

Speaking of those, they conflict with stuff in system headers on
Solaris.

> What about also moving av_malloc, av_free etc.. to avutil ?

IMHO that would make sense.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list