summaryrefslogtreecommitdiff
path: root/package/multimedia/ffmpeg
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-02-28 11:18:21 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2011-02-28 16:08:55 +0100
commit3f6aa3ec56a813a6e9e419e5dfaa9b728561d7ac (patch)
treeeb3c088b772c09f7dcdf164a7d21068afe45cd2e /package/multimedia/ffmpeg
parentdfee7243c65fd11118573fe3128db34993df037a (diff)
ffmpeg: disable mmx for low end x86-type processors
ffmpeg enables mmx by default for x86-class processors, so disable it for processors that lack it (i386, i486, i586, i686, pentium pro, geode). Solves bug #3325 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/multimedia/ffmpeg')
-rw-r--r--package/multimedia/ffmpeg/ffmpeg.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/multimedia/ffmpeg/ffmpeg.mk b/package/multimedia/ffmpeg/ffmpeg.mk
index 60654de06..b37ac901e 100644
--- a/package/multimedia/ffmpeg/ffmpeg.mk
+++ b/package/multimedia/ffmpeg/ffmpeg.mk
@@ -124,6 +124,11 @@ else
FFMPEG_CONF_OPT += --disable-zlib
endif
+# MMX on is default for x86, disable it for lowly x86-type processors
+ifeq ($(BR2_x86_i386)$(BR2_x86_i486)$(BR2_x86_i586)$(BR2_x86_i686)$(BR2_x86_pentiumpro)$(BR2_x86_geode),y)
+FFMPEG_CONF_OPT += --disable-mmx
+endif
+
FFMPEG_CONF_OPT += $(call qstrip,$(BR2_PACKAGE_FFMPEG_EXTRACONF))
# Override FFMPEG_CONFIGURE_CMDS: FFmpeg does not support --target and others