0001-Fix-build-with-FFmpeg-4.0.patch 753 B

1234567891011121314151617181920212223242526272829
  1. From 5690daf759b473b9d13b4547ef37adc2695cf524 Mon Sep 17 00:00:00 2001
  2. From: James Cowgill <jcowgill@jcowgill.uk>
  3. Date: Sun, 25 Feb 2018 14:23:25 +0000
  4. Subject: [PATCH] Fix build with FFmpeg 4.0
  5. ---
  6. src/io/source_avcodec.c | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c
  9. index ccdce807..8197445c 100644
  10. --- a/src/io/source_avcodec.c
  11. +++ b/src/io/source_avcodec.c
  12. @@ -58,7 +58,11 @@
  13. #include "fmat.h"
  14. #include "source_avcodec.h"
  15. +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 56, 0)
  16. #define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
  17. +#else
  18. +#define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE
  19. +#endif
  20. struct _aubio_source_avcodec_t {
  21. uint_t hop_size;
  22. --
  23. 2.17.0