1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

audio/aubio: unbreak with ffmpeg 4.0

../src/io/source_avcodec.c:262:35: error: use of undeclared identifier 'FF_MIN_BUFFER_SIZE'
  s->output = (smpl_t *)av_malloc(AUBIO_AVCODEC_MAX_BUFFER_SIZE * sizeof(smpl_t));
                                  ^
../src/io/source_avcodec.c:61:39: note: expanded from macro 'AUBIO_AVCODEC_MAX_BUFFER_SIZE'
 #define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
                                       ^
../src/io/source_avcodec.c:360:25: error: use of undeclared identifier 'FF_MIN_BUFFER_SIZE'
  int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
                        ^
../src/io/source_avcodec.c:61:39: note: expanded from macro 'AUBIO_AVCODEC_MAX_BUFFER_SIZE'
 #define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
                                       ^
../src/io/source_avcodec.c:434:21: error: use of undeclared identifier 'FF_MIN_BUFFER_SIZE'
  max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
                    ^
../src/io/source_avcodec.c:61:39: note: expanded from macro 'AUBIO_AVCODEC_MAX_BUFFER_SIZE'
 #define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
                                       ^

PR:		227726
Reported by:	antoine (via exp-run)
Obtained from:	upstream
This commit is contained in:
Jan Beich 2018-04-30 18:48:04 +00:00
parent 8bcc24fab3
commit 29e4d24938
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468737
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,9 @@ PORTREVISION?= 0
CATEGORIES?= audio
MASTER_SITES= http://aubio.org/pub/
PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/
PATCHFILES= 5690daf759b4.patch:-p1
MAINTAINER?= jhale@FreeBSD.org
COMMENT?= Library for audio labelling

View File

@ -1,3 +1,5 @@
TIMESTAMP = 1517043034
SHA256 (aubio-0.4.6.tar.bz2) = bdc73be1f007218d3ea6d2a503b38a217815a0e2ccc4ed441f6e850ed5d47cfb
SIZE (aubio-0.4.6.tar.bz2) = 363016
SHA256 (5690daf759b4.patch) = 6fd463e812361a7ddb81440babfe00c5aacfb5e08a62897067d0f4019e048cc1
SIZE (5690daf759b4.patch) = 741