diff mbox series

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

Message ID GV1P250MB073787208FEA403056329C1E8F4D9@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel,1/4] avcodec/snow: Move ff_snow_inner_add_yblock() to snow_dwt.c | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 19, 2022, 9:28 p.m. UTC
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@outlook.com>
 libavcodec/tests/snowenc.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series


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