mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
media-libs/libaubio: add fix for ffmpeg 4.0 (#2962)
This commit is contained in:
@@ -9,10 +9,11 @@ live audio."
|
||||
HOMEPAGE="https://aubio.org"
|
||||
COPYRIGHT="2003-2013 Paul Brossier"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://aubio.org/pub/aubio-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="bdc73be1f007218d3ea6d2a503b38a217815a0e2ccc4ed441f6e850ed5d47cfb"
|
||||
SOURCE_DIR="aubio-$portVersion"
|
||||
PATCHES="libaubio-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
22
media-libs/libaubio/patches/libaubio-0.4.6.patchset
Normal file
22
media-libs/libaubio/patches/libaubio-0.4.6.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 5690daf759b473b9d13b4547ef37adc2695cf524 Mon Sep 17 00:00:00 2001
|
||||
From: James Cowgill <jcowgill@jcowgill.uk>
|
||||
Date: Sun, 25 Feb 2018 14:23:25 +0000
|
||||
Subject: Fix build with FFmpeg 4.0
|
||||
|
||||
|
||||
diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c
|
||||
index ccdce807..8197445c 100644
|
||||
--- a/src/io/source_avcodec.c
|
||||
+++ b/src/io/source_avcodec.c
|
||||
@@ -58,7 +58,11 @@
|
||||
#include "fmat.h"
|
||||
#include "source_avcodec.h"
|
||||
|
||||
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 56, 0)
|
||||
#define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
|
||||
+#else
|
||||
+#define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE
|
||||
+#endif
|
||||
|
||||
struct _aubio_source_avcodec_t {
|
||||
uint_t hop_size;
|
||||
Reference in New Issue
Block a user