[SCM] mplayer packaging branch, master, updated. debian/1.0.rc3+svn20090405-1-16-gdbe43a8

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Thu Jun 4 08:32:31 UTC 2009


The following commit has been merged in the master branch:
commit 683c6747c6150d143f3a695c82a4b01e97f55ae7
Author: Reinhard Tartler <siretart at tauware.de>
Date:   Thu Jun 4 09:59:02 2009 +0200

    strip libavcodec similar to how its done in the ffmpeg package
    
    this ensures that we do not ship mpeg encoders in this package.

diff --git a/debian/strip.sh b/debian/strip.sh
index 8aff70d..32e6424 100755
--- a/debian/strip.sh
+++ b/debian/strip.sh
@@ -4,3 +4,13 @@
 #  by using libdvdread3 (and the optional library installed by
 #    http://www.debian-unofficial.org/   :-)
 rm -rfv libdvdcss
+
+# strip/clean the code from potentially dangerous patented code
+# KEEP THIS IN SYNC WITH THE ffmpeg-debian PACKAGE!
+for codec in 'h263.*' 'h264.*' mpeg2video mpeg4 'msmpeg4.*'; do
+    F=libavcodec/allcodecs.c
+    sed -i "/REGISTER_ENCODER.*\\<$codec\\>/d" $F
+    sed -i "s/REGISTER_ENCDEC\\(.*\\<$codec\\>\\)/REGISTER_DECODER\\1/" $F
+    F=libavcodec/*.c
+    sed -i "/AVCodec *${codec}_encoder *=/,/^[[:space:]]*}/d" $F
+done

-- 
mplayer packaging



More information about the pkg-multimedia-commits mailing list