summaryrefslogtreecommitdiff
path: root/libavcodec/tests
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-01 08:36:09 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-24 12:56:49 +0100
commit636631d9db82f5e86330ab42dacc8a106684b349 (patch)
tree86274afefd600d2ef634dc8d1252807ce9f16721 /libavcodec/tests
parent84f16bb5e68dc47eca4dc96b3391c58471cd7328 (diff)
Remove unnecessary libavutil/(avutil|common|internal).h inclusions
Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/tests')
-rw-r--r--libavcodec/tests/cabac.c2
-rw-r--r--libavcodec/tests/jpeg2000dwt.c5
-rw-r--r--libavcodec/tests/rangecoder.c1
3 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/tests/cabac.c b/libavcodec/tests/cabac.c
index b84a96ce81..d9f98c68e0 100644
--- a/libavcodec/tests/cabac.c
+++ b/libavcodec/tests/cabac.c
@@ -18,12 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavcodec/cabac_functions.h"
#include "libavcodec/cabac.c"
#define SIZE 10240
#include "libavutil/lfg.h"
-#include "libavcodec/avcodec.h"
#include "libavcodec/put_bits.h"
typedef struct CABACTestContext {
diff --git a/libavcodec/tests/jpeg2000dwt.c b/libavcodec/tests/jpeg2000dwt.c
index 80b33bee79..0e5a6ed947 100644
--- a/libavcodec/tests/jpeg2000dwt.c
+++ b/libavcodec/tests/jpeg2000dwt.c
@@ -20,6 +20,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
+#include <stdio.h>
+
+#include "libavutil/common.h"
+
#include "libavcodec/jpeg2000dwt.c"
#include "libavutil/lfg.h"
diff --git a/libavcodec/tests/rangecoder.c b/libavcodec/tests/rangecoder.c
index ca96e13c99..fd858535a5 100644
--- a/libavcodec/tests/rangecoder.c
+++ b/libavcodec/tests/rangecoder.c
@@ -19,6 +19,7 @@
#include <stdint.h>
#include <string.h>
+#include "libavutil/error.h"
#include "libavutil/lfg.h"
#include "libavutil/log.h"