diff mbox series

[FFmpeg-devel,04/10] avcodec/fft-internal: Make it a standalone header

Message ID AM7PR03MB666054724D3DBC366F2684FA8FEF9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit a449fb35ca6128a414e555f9cc31fa0ec13c4a5d
Headers show
Series [FFmpeg-devel,01/10] avcodec/mips/constants: Include intfloat.h in constants.h | expand


Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Aug. 2, 2021, 3:39 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
ppc/fft_vsx.h uses sqrthalf (provided by fft-internal.h) which uses
M_SQRT1_2 which it seems to get via fft.h which includes mem_internal.h
which includes avassert.h which includes avutil.h which includes
mathematics.h which provides this. Several of these inclusions are
unnecessary, so I add these headers here to make the header usable on
its own even if the unnecessary inclusions are removed (which I intend
to do later).

 libavcodec/Makefile       | 1 -
 libavcodec/fft-internal.h | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series


diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index be64c82c66..9a6adb9903 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -1181,7 +1181,6 @@  SLIBOBJS-$(HAVE_GNU_WINDRES)           += avcodecres.o
 SKIPHEADERS                            += %_tablegen.h                  \
                                           %_tables.h                    \
-                                          fft-internal.h                \
                                           tableprint.h                  \
                                           tableprint_vlc.h              \
                                           aaccoder_twoloop.h            \
diff --git a/libavcodec/fft-internal.h b/libavcodec/fft-internal.h
index b0d8d80efd..d89a3e38ca 100644
--- a/libavcodec/fft-internal.h
+++ b/libavcodec/fft-internal.h
@@ -19,6 +19,9 @@ 
+#include "libavutil/mathematics.h"
+#include "fft.h"
 #define FIX15(v) (v)