# HG changeset patch # User Pascal Bellard # Date 1399995778 0 # Node ID 06eca9e5596d95012b765b89d748608aaf82e6a4 # Parent 6020e80e880a854b96927e0feafb749aecd25a71 miro: update ffmpeg patch diff -r 6020e80e880a -r 06eca9e5596d linphone/receipt --- a/linphone/receipt Tue May 13 14:25:38 2014 +0000 +++ b/linphone/receipt Tue May 13 15:42:58 2014 +0000 @@ -19,6 +19,11 @@ compile_rules() { cd $src + sed -i -e 's/CodecID/AV&/' \ + -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \ + -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \ + -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \ + mediastreamer2/src/*.c # Define deprecated ffmepg flags ... CFLAGS="-DCODEC_FLAG_PART=0x0080 -DCODEC_FLAG_H263P_UMV=0x0200000 -DCODEC_FLAG_H263P_SLICE_STRUCT=0x01000000 -DFF_I_TYPE=1" \ LIBS="-lavutil -lz" \ diff -r 6020e80e880a -r 06eca9e5596d miro/receipt --- a/miro/receipt Tue May 13 14:25:38 2014 +0000 +++ b/miro/receipt Tue May 13 15:42:58 2014 +0000 @@ -30,6 +30,7 @@ -e 's/av_write_header(oc)/avformat_write_header(oc, NULL)/' \ -e 's/put_flush_packet/avio_flush/' \ -e 's/url_fclose/avio_close/' \ + -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \ miro-segmenter.c python setup.py install --root=$DESTDIR sed -i "s|./miro.real|/usr/bin/miro.real|g" $DESTDIR/usr/bin/miro