aboutsummaryrefslogtreecommitdiff
path: root/multimedia/audacious-plugins
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2017-01-28 20:50:43 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2017-01-28 20:50:43 +0000
commit25ee9ffb5016e7ca009eb049862116d854c009b8 (patch)
treeeefc765be65ca6c132a25c271065243e551d2601 /multimedia/audacious-plugins
parente658036e5798bfac4109c3cbd01440fc54f6cda7 (diff)
- Fix memory issue with AAC plugin
- Bump PORTREVISION Reported by: gnn@ (private email) Obtained from: Upstream repository MFH: 2017Q1
Notes
Notes: svn path=/head/; revision=432652
Diffstat (limited to 'multimedia/audacious-plugins')
-rw-r--r--multimedia/audacious-plugins/Makefile2
-rw-r--r--multimedia/audacious-plugins/files/patch-src_ffaudio_ffaudio-core.cc24
2 files changed, 25 insertions, 1 deletions
diff --git a/multimedia/audacious-plugins/Makefile b/multimedia/audacious-plugins/Makefile
index c4b860f127f7..d9b7cb66de14 100644
--- a/multimedia/audacious-plugins/Makefile
+++ b/multimedia/audacious-plugins/Makefile
@@ -3,7 +3,7 @@
PORTNAME= audacious-plugins
PORTVERSION= 3.8.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= multimedia audio
MASTER_SITES= http://distfiles.audacious-media-player.org/
diff --git a/multimedia/audacious-plugins/files/patch-src_ffaudio_ffaudio-core.cc b/multimedia/audacious-plugins/files/patch-src_ffaudio_ffaudio-core.cc
new file mode 100644
index 000000000000..81669e2e9027
--- /dev/null
+++ b/multimedia/audacious-plugins/files/patch-src_ffaudio_ffaudio-core.cc
@@ -0,0 +1,24 @@
+--- src/ffaudio/ffaudio-core.cc.orig 2016-12-06 14:15:33 UTC
++++ src/ffaudio/ffaudio-core.cc
+@@ -99,7 +99,8 @@ struct ScopedContext
+
+ struct ScopedPacket : public AVPacket
+ {
+- ScopedPacket () { av_init_packet (this); }
++ ScopedPacket () : AVPacket ()
++ { av_init_packet (this); }
+
+ #if CHECK_LIBAVCODEC_VERSION (55, 25, 100, 55, 16, 0)
+ ~ScopedPacket () { av_packet_unref (this); }
+@@ -553,8 +554,10 @@ bool FFaudio::play (const char * filenam
+ /* On EOF, send an empty packet to "flush" the decoder */
+ /* Otherwise, make a mutable (shallow) copy of the real packet */
+ AVPacket tmp;
+- if (eof)
++ if (eof) {
++ tmp = AVPacket ();
+ av_init_packet (& tmp);
++ }
+ else
+ tmp = pkt;
+