aboutsummaryrefslogtreecommitdiff
path: root/audio/aqualung/files
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2016-06-15 21:35:22 +0000
committerBen Woods <woodsb02@FreeBSD.org>2016-06-15 21:35:22 +0000
commita346fc26be1bca770fa55341358837c7d3c5660e (patch)
tree347266e7b837938e84f57450b6a97a825b321e82 /audio/aqualung/files
parent238dc6b76a6e7a752035b58eabea17866a945d7b (diff)
downloadports-a346fc26be1bca770fa55341358837c7d3c5660e.tar.gz
ports-a346fc26be1bca770fa55341358837c7d3c5660e.zip
Notes
Diffstat (limited to 'audio/aqualung/files')
-rw-r--r--audio/aqualung/files/patch-ffmpeg324
1 files changed, 24 insertions, 0 deletions
diff --git a/audio/aqualung/files/patch-ffmpeg3 b/audio/aqualung/files/patch-ffmpeg3
new file mode 100644
index 000000000000..f734c21d5b9b
--- /dev/null
+++ b/audio/aqualung/files/patch-ffmpeg3
@@ -0,0 +1,24 @@
+From 3f60efe3dbab8e9d2c07a7b183fd009b3c999d60 Mon Sep 17 00:00:00 2001
+From: Jamie Heilman <jamie@audible.transient.net>
+Date: Sun, 8 May 2016 19:34:36 +0000
+Subject: [PATCH] ffmpeg/libav: support libavcodec API 55 and later
+
+With FFmpeg 1.0 and libav 10, AVCodecContext.{get,release}_buffer()
+were deprecated; the new default AVCodecContext.get_buffer2()
+implementation works fine for us.
+
+--- src/decoder/dec_lavc.c.orig
++++ src/decoder/dec_lavc.c
+@@ -280,10 +280,12 @@ lavc_decoder_open(decoder_t * dec, char * filename) {
+ return DECODER_OPEN_BADLIB;
+
+ pd->avCodecCtx = pd->avFormatCtx->streams[pd->audioStream]->codec;
++#if LIBAVCODEC_VERSION_MAJOR < 55
+ #if LIBAVCODEC_VERSION_MAJOR >= 53
+ pd->avCodecCtx->get_buffer = avcodec_default_get_buffer;
+ pd->avCodecCtx->release_buffer = avcodec_default_release_buffer;
+ #endif /* LIBAVCODEC_VERSION_MAJOR >= 53 */
++#endif /* LIBAVCODEC_VERSION_MAJOR < 55 */
+
+ pd->time_base = pd->avFormatCtx->streams[pd->audioStream]->time_base;
+