summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/aqualung/ChangeLog7
-rw-r--r--media-sound/aqualung/aqualung-0.9_beta11-r2.ebuild5
-rw-r--r--media-sound/aqualung/files/aqualung-0.9_beta11-avcodec_max_audio_frame_size.patch31
3 files changed, 40 insertions, 3 deletions
diff --git a/media-sound/aqualung/ChangeLog b/media-sound/aqualung/ChangeLog
index 707fb1e2475b..33fb1a84fdce 100644
--- a/media-sound/aqualung/ChangeLog
+++ b/media-sound/aqualung/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/aqualung
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/aqualung/ChangeLog,v 1.33 2014/01/28 16:33:04 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/aqualung/ChangeLog,v 1.34 2014/03/24 17:33:45 billie Exp $
+
+ 24 Mar 2014; Daniel Pielmeier <billie@gentoo.org>
+ aqualung-0.9_beta11-r2.ebuild,
+ +files/aqualung-0.9_beta11-avcodec_max_audio_frame_size.patch:
+ Fix bug #505330. Thanks to Bob Johnson for the report.
28 Jan 2014; Samuli Suominen <ssuominen@gentoo.org>
-aqualung-0.9_beta11-r1.ebuild:
diff --git a/media-sound/aqualung/aqualung-0.9_beta11-r2.ebuild b/media-sound/aqualung/aqualung-0.9_beta11-r2.ebuild
index 4dd924c1ee7c..260f6445b73b 100644
--- a/media-sound/aqualung/aqualung-0.9_beta11-r2.ebuild
+++ b/media-sound/aqualung/aqualung-0.9_beta11-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/aqualung/aqualung-0.9_beta11-r2.ebuild,v 1.6 2014/01/26 10:59:37 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/aqualung/aqualung-0.9_beta11-r2.ebuild,v 1.7 2014/03/24 17:33:45 billie Exp $
EAPI=5
@@ -53,7 +53,8 @@ src_prepare() {
"${FILESDIR}"/${P}-ffmpeg.patch \
"${FILESDIR}"/${P}-libavformat54.patch \
"${FILESDIR}"/${P}-automake-1.13.patch \
- "${FILESDIR}"/${P}-libav9.patch
+ "${FILESDIR}"/${P}-libav9.patch \
+ "${FILESDIR}"/${P}-avcodec_max_audio_frame_size.patch
sed -i \
-e 's:$(pkgdatadir)/doc:/usr/share/doc/${PF}:' \
doc/Makefile.am || die
diff --git a/media-sound/aqualung/files/aqualung-0.9_beta11-avcodec_max_audio_frame_size.patch b/media-sound/aqualung/files/aqualung-0.9_beta11-avcodec_max_audio_frame_size.patch
new file mode 100644
index 000000000000..bc216d5c14ec
--- /dev/null
+++ b/media-sound/aqualung/files/aqualung-0.9_beta11-avcodec_max_audio_frame_size.patch
@@ -0,0 +1,31 @@
+Index: src/decoder/dec_lavc.c
+===================================================================
+--- src/decoder/dec_lavc.c (revision 1272)
++++ src/decoder/dec_lavc.c (revision 1273)
+@@ -84,9 +84,9 @@
+ file_decoder_t * fdec = dec->fdec;
+
+ AVPacket packet;
+- int16_t samples[AVCODEC_MAX_AUDIO_FRAME_SIZE];
+- float fsamples[AVCODEC_MAX_AUDIO_FRAME_SIZE];
+- int n_bytes = AVCODEC_MAX_AUDIO_FRAME_SIZE;
++ int16_t samples[MAX_AUDIO_FRAME_SIZE];
++ float fsamples[MAX_AUDIO_FRAME_SIZE];
++ int n_bytes = MAX_AUDIO_FRAME_SIZE;
+
+ if (av_read_frame(pd->avFormatCtx, &packet) < 0)
+ return 1;
+Index: src/decoder/dec_lavc.h
+===================================================================
+--- src/decoder/dec_lavc.h (revision 1272)
++++ src/decoder/dec_lavc.h (revision 1273)
+@@ -29,7 +29,8 @@
+ #include "file_decoder.h"
+
+
+-#define RB_LAVC_SIZE (3*AVCODEC_MAX_AUDIO_FRAME_SIZE)
++#define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
++#define RB_LAVC_SIZE (3*MAX_AUDIO_FRAME_SIZE)
+
+
+ typedef struct _lavc_pdata_t {