On Dec 24, 2014, at 12:25 AM, Max Kellermann <m...@duempel.org> wrote:

> On 2014/12/24 08:46, Jan Brittenson <b...@rockgarden.net> wrote:
>> Fix: always include both libavutil/mem.h and libavcodec/avcodec.h regardless 
>> of whether we have
>> av_fast_malloc or avcodec.h or not.
> 
> But why include libavcodec/avcodec.h when none of its symbols is used?

avcodec.h declares av_fast_malloc() and av_fast_realloc().

We always use either av_fast_malloc() or fall back on av_fast_realloc().  So we 
always need this
header file.

libavutil/mem.h declares av_malloc() and av_free().

There is no matching av_fast_free().

_______________________________________________
mpd-devel mailing list
mpd-devel@musicpd.org
http://mailman.blarg.de/listinfo/mpd-devel

Reply via email to