summaryrefslogtreecommitdiff
path: root/media-libs/aubio/files/aubio-0.4.1-ffmpeg29.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/aubio/files/aubio-0.4.1-ffmpeg29.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/aubio/files/aubio-0.4.1-ffmpeg29.patch')
-rw-r--r--media-libs/aubio/files/aubio-0.4.1-ffmpeg29.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/media-libs/aubio/files/aubio-0.4.1-ffmpeg29.patch b/media-libs/aubio/files/aubio-0.4.1-ffmpeg29.patch
new file mode 100644
index 000000000000..86562716d3e5
--- /dev/null
+++ b/media-libs/aubio/files/aubio-0.4.1-ffmpeg29.patch
@@ -0,0 +1,22 @@
+Index: aubio-0.4.1/src/io/source_avcodec.c
+===================================================================
+--- aubio-0.4.1.orig/src/io/source_avcodec.c
++++ aubio-0.4.1/src/io/source_avcodec.c
+@@ -167,7 +167,7 @@ aubio_source_avcodec_t * new_aubio_sourc
+ }
+
+ AVFrame *avFrame = s->avFrame;
+- avFrame = avcodec_alloc_frame();
++ avFrame = av_frame_alloc();
+ if (!avFrame) {
+ AUBIO_ERR("source_avcodec: Could not allocate frame for (%s)\n", s->path);
+ }
+@@ -415,7 +415,7 @@ void del_aubio_source_avcodec(aubio_sour
+ }
+ s->output = NULL;
+ if (s->avFrame != NULL) {
+- avcodec_free_frame( &(s->avFrame) );
++ av_frame_free( &(s->avFrame) );
+ }
+ s->avFrame = NULL;
+ AUBIO_FREE(s);