summaryrefslogtreecommitdiff
path: root/media-libs/aubio/files/aubio-0.4.1-ffmpeg29.patch
blob: 86562716d3e588b37ccc61ae4fe300443ed651db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);