[oe-commits] Koen Kooi : mplayer svn: make SRCREV go backwards to fix audio and dvd playback

git version control git at git.openembedded.org
Fri Jan 29 11:11:22 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: a9e2573fd6764685720bc5532370bad2c039d9be
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a9e2573fd6764685720bc5532370bad2c039d9be

Author: Koen Kooi <koen at openembedded.org>
Date:   Fri Jan 29 11:53:32 2010 +0100

mplayer svn: make SRCREV go backwards to fix audio and dvd playback

* bisecting to the offending commits is nigh impossible since mplayer doesn't compile for about 70% of the affected revision range :(

---

 recipes/mplayer/files/fix-avconfig.diff |   50 +++++++++++++++++++++++++++++++
 recipes/mplayer/mplayer_svn.bb          |    3 +-
 2 files changed, 52 insertions(+), 1 deletions(-)

diff --git a/recipes/mplayer/files/fix-avconfig.diff b/recipes/mplayer/files/fix-avconfig.diff
new file mode 100644
index 0000000..80f2962
--- /dev/null
+++ b/recipes/mplayer/files/fix-avconfig.diff
@@ -0,0 +1,50 @@
+From 0d0bae1e1e24410b9ead821c4450bb2b136ae325 Mon Sep 17 00:00:00 2001
+From: diego <diego at b3059339-0415-0410-9bf9-f77b7e298cf2>
+Date: Tue, 19 Jan 2010 18:53:16 +0000
+Subject: Create libavutil/avconfig.h, required for FFmpeg compilation.
+
+based on a patch by Etienne Buira, etienne.buira free fr
+
+
+git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30376 b3059339-0415-0410-9bf9-f77b7e298cf2
+---
+diff --git a/configure b/configure
+index 1feed88..85a3b7a 100755
+--- a/configure
++++ b/configure
+@@ -2432,10 +2432,12 @@ if test "$_big_endian" = yes ; then
+   _byte_order='big-endian'
+   def_words_endian='#define WORDS_BIGENDIAN 1'
+   def_bigendian='#define HAVE_BIGENDIAN 1'
++  def_av_bigendian='#define AV_HAVE_BIGENDIAN 1'
+ else
+   _byte_order='little-endian'
+   def_words_endian='#undef WORDS_BIGENDIAN'
+   def_bigendian='#define HAVE_BIGENDIAN 0'
++  def_av_bigendian='#define AV_HAVE_BIGENDIAN 0'
+ fi
+ echores "$_byte_order"
+ 
+@@ -9225,6 +9227,20 @@ EOF
+ # Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
+ cmp -s "$TMPH" config.h || mv -f "$TMPH" config.h
+ 
++############################################################################
++
++# Create avconfig.h for FFmpeg.
++cat > "$TMPH" << EOF
++/* Generated by mpconfigure */
++#ifndef AVUTIL_AVCONFIG_H
++#define AVUTIL_AVCONFIG_H
++$def_av_bigendian
++#endif /* AVUTIL_AVCONFIG_H */
++EOF
++
++# Do not overwrite an unchanged avconfig.h to avoid superfluous rebuilds.
++cmp -s "$TMPH" libavutil/avconfig.h || mv -f "$TMPH" libavutil/avconfig.h
++
+ #############################################################################
+ 
+ cat << EOF
+--
+cgit v0.8.2.1-10-g45e7
diff --git a/recipes/mplayer/mplayer_svn.bb b/recipes/mplayer/mplayer_svn.bb
index 263dc9a..60c9422 100644
--- a/recipes/mplayer/mplayer_svn.bb
+++ b/recipes/mplayer/mplayer_svn.bb
@@ -13,9 +13,10 @@ SRC_URI = "svn://svn.mplayerhq.hu/mplayer;module=trunk \
 	   file://mplayer-lavc-arm.patch;patch=1 \
        file://fix-exp.diff;patch=1;maxrev=30291 \
 	   file://fix-addrinfo.patch;patch=1;maxrev=30302 \
+       file://fix-avconfig.diff;patch=1;maxrev=30376 \
 "
 
-SRCREV = "30432"
+SRCREV = "30165"
 SRC_URI_append_armv7a = " \
 		file://omapfb.patch;patch=1 \
 	   file://vo_omapfb.c \





More information about the Openembedded-commits mailing list