[FFmpeg-devel] [PATCH 2/4] avcodec/tests/snowenc: Don't unnecessarily include snowenc.c

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Tue Sep 20 00:28:37 EEST 2022


This made this file export the snow encoder and therefore pulled
most of libavcodec into the corresponding test tool.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/tests/snowenc.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/libavcodec/tests/snowenc.c b/libavcodec/tests/snowenc.c
index e423ab0541..6beb43d562 100644
--- a/libavcodec/tests/snowenc.c
+++ b/libavcodec/tests/snowenc.c
@@ -18,7 +18,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "libavcodec/snowenc.c"
+#include <inttypes.h>
+#include <stdio.h>
+#include <string.h>
 
 #undef malloc
 #undef free
@@ -26,6 +28,10 @@
 
 #include "libavutil/lfg.h"
 #include "libavutil/mathematics.h"
+#include "libavutil/mem.h"
+
+#include "libavcodec/snow.h"
+#include "libavcodec/snow_dwt.h"
 
 int main(void){
 #define width  256
-- 
2.34.1



More information about the ffmpeg-devel mailing list