diff options
author | IOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at> | 2022-06-30 22:14:16 +0200 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at> | 2022-06-30 22:14:16 +0200 |
commit | 9d7a27eb40775c8edd762994f16d023148996014 (patch) | |
tree | 4f94ea65ec6ba121baf277b8dd8ef2732744d156 | |
parent | 89a280e6a1e4fe889df97d47fb86247aa1ac1fc7 (diff) |
Add patch to build against ffmpeg-5.0
Closes: #1004787
-rw-r--r-- | debian/patches/ffmpeg5.patch | 20 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/ffmpeg5.patch b/debian/patches/ffmpeg5.patch new file mode 100644 index 0000000..7677295 --- /dev/null +++ b/debian/patches/ffmpeg5.patch @@ -0,0 +1,20 @@ +Description: Fix compilation with ffmpeg-5.0 +Author: Paul Brossier +Origin: upstream +Applied-Upstream: https://github.com/aubio/aubio/commit/8a05420e5dd8c7b8b2447f82dc919765876511b3 +Last-Update: 2022-06-30 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- aubio.orig/src/io/source_avcodec.c ++++ aubio/src/io/source_avcodec.c +@@ -68,6 +68,10 @@ + #define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE + #endif + ++#if LIBAVCODEC_VERSION_MAJOR >= 59 ++#define FF_API_LAVF_AVCTX 1 ++#endif ++ + struct _aubio_source_avcodec_t { + uint_t hop_size; + uint_t samplerate; diff --git a/debian/patches/series b/debian/patches/series index 106a693..af08250 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ fixtypos.patch fixpowerpc.patch fixi386.patch wscript_py3.patch +ffmpeg5.patch |