From cc49cfe57c149eacc63a5a93fdd2040d23515ce6 Mon Sep 17 00:00:00 2001
From: gixxpunk <thomas.harfmann@gmail.com>
Date: Mon, 16 Oct 2017 09:15:24 +0200
Subject: [PATCH] - ffmpeg: rework configure for ax

---
 make/system-libs.mk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/make/system-libs.mk b/make/system-libs.mk
index 138aab22..0f891af8 100644
--- a/make/system-libs.mk
+++ b/make/system-libs.mk
@@ -343,7 +343,6 @@ FFMPEG_CONFIGURE_GENERIC = \
 			\
 			--disable-extra-warnings \
 			--disable-postproc \
-			--disable-swscale \
 			\
 			--enable-bsfs \
 			--enable-libass \
@@ -366,6 +365,7 @@ FFMPEG_CONFIGURE_GENERIC = \
 
 ifeq ($(BOXSERIES), hd2)
   FFMPEG_CONFIGURE = \
+			--disable-swscale \
 			--disable-ffmpeg \
 			--disable-neon \
 			--enable-decoder=h264 \
@@ -377,6 +377,7 @@ endif
 
 ifeq ($(BOXSERIES), hd1)
   FFMPEG_CONFIGURE = \
+			--disable-swscale \
 			--disable-ffmpeg \
 			--disable-neon \
 			--enable-small \
@@ -386,7 +387,9 @@ endif
 
 ifeq ($(BOXSERIES), ax)
   FFMPEG_CONFIGURE = \
-			--enable-encoder=mjpeg \
+			--enable-encoder=mpeg2video \
+			--enable-muxer=mpeg2video \
+			--enable-filter=scale \
 			--enable-hardcoded-tables \
 			--cpu=cortex-a15 \
 			--extra-cflags="-Wno-deprecated-declarations -I$(TARGETINCLUDE) -mfpu=neon-vfpv4 -mfloat-abi=hard"