3
# This contains the dreaded DVD decryption code. We can live without it
4
# by using libdvdread3 (and the optional library installed by
5
# http://www.debian-unofficial.org/ :-)
8
# play the most safe game at this point, remove mencoder.c from the
12
# strip/clean the code from potentially dangerous patented code
13
# KEEP THIS IN SYNC WITH THE ffmpeg-debian PACKAGE!
14
for codec in 'h263.*' 'h264.*' mpeg2video mpeg4 'msmpeg4.*'; do
15
F=libavcodec/allcodecs.c
16
sed -i "/REGISTER_ENCODER.*\\<$codec\\>/d" $F
17
sed -i "s/REGISTER_ENCDEC\\(.*\\<$codec\\>\\)/REGISTER_DECODER\\1/" $F
19
sed -i "/AVCodec *${codec}_encoder *=/,/^[[:space:]]*}/d" $F