diff options
author | Alexis Ballier <aballier@gentoo.org> | 2015-09-14 17:50:06 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2015-09-14 17:50:17 +0200 |
commit | 610b59b8f9b471f8548a7b09162792e1acca5d31 (patch) | |
tree | 6247a94ac1b54baed9ba9b5defa5094cdab72b35 /media-plugins/alsa-plugins | |
parent | dev-ml/dose3: fix build with latest extlib. (diff) | |
download | gentoo-610b59b8f9b471f8548a7b09162792e1acca5d31.tar.gz gentoo-610b59b8f9b471f8548a7b09162792e1acca5d31.tar.bz2 gentoo-610b59b8f9b471f8548a7b09162792e1acca5d31.zip |
media-plugins/alsa-plugins: fix build with ffmpeg git master.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'media-plugins/alsa-plugins')
-rw-r--r-- | media-plugins/alsa-plugins/alsa-plugins-1.0.29-r1.ebuild | 1 | ||||
-rw-r--r-- | media-plugins/alsa-plugins/files/alsa-plugins-1.0.29-ffmpeg29.patch | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/media-plugins/alsa-plugins/alsa-plugins-1.0.29-r1.ebuild b/media-plugins/alsa-plugins/alsa-plugins-1.0.29-r1.ebuild index 4e2b087585fa..667bf33122c9 100644 --- a/media-plugins/alsa-plugins/alsa-plugins-1.0.29-r1.ebuild +++ b/media-plugins/alsa-plugins/alsa-plugins-1.0.29-r1.ebuild @@ -35,6 +35,7 @@ DEPEND="${RDEPEND} src_prepare() { epatch "${FILESDIR}"/${PN}-1.0.23-automagic.patch epatch "${FILESDIR}"/${PN}-1.0.28-libav10.patch + has_version '>=media-video/ffmpeg-2.8' && epatch "${FILESDIR}"/${PN}-1.0.29-ffmpeg29.patch epatch_user diff --git a/media-plugins/alsa-plugins/files/alsa-plugins-1.0.29-ffmpeg29.patch b/media-plugins/alsa-plugins/files/alsa-plugins-1.0.29-ffmpeg29.patch new file mode 100644 index 000000000000..efd37839f326 --- /dev/null +++ b/media-plugins/alsa-plugins/files/alsa-plugins-1.0.29-ffmpeg29.patch @@ -0,0 +1,30 @@ +Index: alsa-plugins-1.0.29/a52/pcm_a52.c +=================================================================== +--- alsa-plugins-1.0.29.orig/a52/pcm_a52.c ++++ alsa-plugins-1.0.29/a52/pcm_a52.c +@@ -39,7 +39,6 @@ + #endif + + #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 34, 0) +-#include <libavutil/audioconvert.h> + #include <libavutil/mem.h> + #define USE_AVCODEC_FRAME + #endif +@@ -513,7 +512,7 @@ static void a52_free(struct a52_ctx *rec + rec->inbuf = NULL; + } + #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0) +- avcodec_free_frame(&rec->frame); ++ av_frame_free(&rec->frame); + #else + av_freep(&rec->frame); + #endif +@@ -557,7 +556,7 @@ static int alloc_input_buffer(snd_pcm_io + { + struct a52_ctx *rec = io->private_data; + #ifdef USE_AVCODEC_FRAME +- rec->frame = avcodec_alloc_frame(); ++ rec->frame = av_frame_alloc(); + if (!rec->frame) + return -ENOMEM; + if (av_samples_alloc(rec->frame->data, rec->frame->linesize, |