[FFmpeg-devel] [PATCH] avformat/codec2: remove surplus include 'memory.h' statement
Tomas Härdin
tjoppen at acc.umu.se
Thu Mar 24 19:33:01 EET 2022
ons 2022-03-23 klockan 16:26 +1100 skrev Peter Ross:
> on glibc memory.h drags in string.h, but codec2 does not use any
> str* or mem* functions. additionally, memory.h is not part of the
> C99 or POSIX standards.
> ---
> libavformat/codec2.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/libavformat/codec2.c b/libavformat/codec2.c
> index cd0521299c..400c5acbdb 100644
> --- a/libavformat/codec2.c
> +++ b/libavformat/codec2.c
> @@ -21,7 +21,6 @@
>
> #include "config_components.h"
>
> -#include <memory.h>
> #include "libavcodec/codec2utils.h"
> #include "libavutil/channel_layout.h"
> #include "libavutil/intreadwrite.h"
Looks fine
/Tomas
More information about the ffmpeg-devel
mailing list