summaryrefslogtreecommitdiff
path: root/tests/checkasm/aacencdsp.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-28 13:29:19 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-02 02:54:11 +0100
commit88b3b09afa5ef00dfc89a5904614bd51de65c21b (patch)
treeb81c1c704ac810f4a68b7661ddb0c39eb0283311 /tests/checkasm/aacencdsp.c
parent6c693da690d2618b36c801f0b10607a4f68eaad6 (diff)
avcodec/aacenc: Move initializing DSP out of aacenc.c
Otherwise aacenc.o gets pulled in by the aacencdsp checkasm test and it in turn pulls the rest of lavc in. Besides being bad size-wise this also has the downside that it pulls in avpriv_(cga|vga16)_font from libavutil which are marked as being imported from another library when building libavcodec as a DLL and this breaks checkasm because it links both lavc and lavu statically. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/checkasm/aacencdsp.c')
-rw-r--r--tests/checkasm/aacencdsp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/checkasm/aacencdsp.c b/tests/checkasm/aacencdsp.c
index 6fc22047c3..1756c4ecd5 100644
--- a/tests/checkasm/aacencdsp.c
+++ b/tests/checkasm/aacencdsp.c
@@ -20,10 +20,9 @@
#include <string.h>
-#include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
-#include "libavcodec/aacenc.h"
+#include "libavcodec/aacencdsp.h"
#include "checkasm.h"
@@ -36,7 +35,8 @@
} \
} while (0)
-static void test_abs_pow34(AACEncContext *s) {
+static void test_abs_pow34(AACEncDSPContext *s)
+{
#define BUF_SIZE 1024
LOCAL_ALIGNED_32(float, in, [BUF_SIZE]);
@@ -63,8 +63,8 @@ static void test_abs_pow34(AACEncContext *s) {
void checkasm_check_aacencdsp(void)
{
- AACEncContext s = { 0 };
- ff_aac_dsp_init(&s);
+ AACEncDSPContext s = { 0 };
+ ff_aacenc_dsp_init(&s);
test_abs_pow34(&s);
}