[FFmpeg-devel] [PATCH 03/10] avutil/common: Don't auto-include mem.h
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Mon Mar 25 23:27:17 EET 2024
Michael Niedermayer:
> On Mon, Mar 25, 2024 at 02:53:17AM +0100, Andreas Rheinhardt wrote:
>> There are lots of files that don't need it: The number of object
>> files that actually need it went down from 2011 to 884 here.
>>
>> Keep it for external users in order to not cause breakages.
>>
>> Also improve the other headers a bit while just at it.
>
> breaks mips build:
>
> src/libavformat/asfdec_f.c: In function ‘asf_read_stream_properties’:
> src/libavformat/asfdec_f.c:438:38: error: implicit declaration of function ‘av_bswap32’; did you mean ‘av_escape’? [-Werror=implicit-function-declaration]
> asf_st->palette[i] = av_bswap32(((uint32_t *)st->codecpar->extradata)[i]);
> ^~~~~~~~~~
> av_escape
> cc1: some warnings being treated as errors
> src/ffbuild/common.mak:81: recipe for target 'libavformat/asfdec_f.o' failed
> make: *** [libavformat/asfdec_f.o] Error 1
> make: *** Waiting for unfinished jobs....
>
Thanks. There is a #if HAVE_BIGENDIAN that uses swaps which I did not
recognize. I will fix and test this patch on more arches, including BE ones.
- Andreas
More information about the ffmpeg-devel
mailing list