$OpenBSD: patch-ffmpeg_libswscale_Makefile,v 1.1 2010/11/08 21:25:44 edd Exp $
--- ffmpeg/libswscale/Makefile.orig	Sun Oct 24 13:08:24 2010
+++ ffmpeg/libswscale/Makefile	Sun Oct 24 13:09:41 2010
@@ -21,3 +21,12 @@ DIRS = bfin mlib ppc sparc x86
 
 include $(SUBDIR)../subdir.mak
 $(SUBDIR)swscale-test$(EXESUF): ELIBS = -lavcore
+
+ifdef ARCH_X86_32
+ifeq (,$(findstring -O,$(CFLAGS)))
+x86/yuv2rgb_mmx.o: CFLAGS += -O
+endif
+# OpenBSD: Again - we run out of registers otherwise
+x86/yuv2rgb_mmx.o: CFLAGS += -fomit-frame-pointer
+endif
+
