mplayer svn: make swscale accept larger input images regardless of arch
authorKoen Kooi <koen@openembedded.org>
Tue, 5 Oct 2010 07:32:26 +0000 (09:32 +0200)
committerKoen Kooi <koen@openembedded.org>
Tue, 5 Oct 2010 07:32:26 +0000 (09:32 +0200)
recipes/mplayer/mplayer/vofw-swscale.diff [new file with mode: 0644]
recipes/mplayer/mplayer_svn.bb

diff --git a/recipes/mplayer/mplayer/vofw-swscale.diff b/recipes/mplayer/mplayer/vofw-swscale.diff
new file mode 100644 (file)
index 0000000..6a6b82c
--- /dev/null
@@ -0,0 +1,16 @@
+Needed for encoding large images with mencoder or grabbing large image from a v4l src
+
+--- /tmp/swscale_internal.h    2010-10-05 09:15:42.000000000 +0200
++++ trunk/libswscale/swscale_internal.h        2010-10-05 09:16:07.000000000 +0200
+@@ -33,11 +33,7 @@
+ #define MAX_FILTER_SIZE 256
+-#if ARCH_X86
+ #define VOFW 5120
+-#else
+-#define VOFW 2048 // faster on PPC and not tested on others
+-#endif
+ #define VOF  (VOFW*2)
index 42907d1..8ecee88 100644 (file)
@@ -18,6 +18,7 @@ SRC_URI = "svn://svn.mplayerhq.hu/mplayer;module=trunk \
        file://codecs_conf-VP8.diff;striplevel=0 \
        file://demux_mkv-V_VP8__webm_doctype.diff;striplevel=0 \
        file://configure-libvpx_test.diff \
+       file://vofw-swscale.diff \
 "
 
 SRCREV = "30165"
@@ -43,7 +44,7 @@ RCONFLICTS_${PN} = "mplayer-atty"
 RREPLACES_${PN} = "mplayer-atty"
 
 PV = "0.0+1.0rc3+svnr${SRCPV}"
-PR = "r25"
+PR = "r26"
 DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_angstrom = "1"
 DEFAULT_PREFERENCE_shr = "1"