]> git.pld-linux.org Git - packages/alsa-plugins.git/blob - ffmpeg3.patch
- fix building with ffmpeg 3.x
[packages/alsa-plugins.git] / ffmpeg3.patch
1 --- alsa-plugins-1.1.0/a52/pcm_a52.c.orig       2015-10-27 14:34:06.000000000 +0100
2 +++ alsa-plugins-1.1.0/a52/pcm_a52.c    2016-03-21 12:25:16.452315942 +0100
3 @@ -39,7 +39,7 @@
4  #endif
5  
6  #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 34, 0)
7 -#include <libavutil/audioconvert.h>
8 +//#include <libavutil/audioconvert.h>
9  #include <libavutil/mem.h>
10  #define USE_AVCODEC_FRAME
11  #endif
12 @@ -513,7 +513,7 @@
13                 rec->inbuf = NULL;
14         }
15  #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0)
16 -       avcodec_free_frame(&rec->frame);
17 +       av_frame_free(&rec->frame);
18  #else
19         av_freep(&rec->frame);
20  #endif
21 @@ -557,7 +557,7 @@
22  {
23         struct a52_ctx *rec = io->private_data;
24  #ifdef USE_AVCODEC_FRAME
25 -       rec->frame = avcodec_alloc_frame();
26 +       rec->frame = av_frame_alloc();
27         if (!rec->frame)
28                 return -ENOMEM;
29         if (av_samples_alloc(rec->frame->data, rec->frame->linesize,
This page took 0.023528 seconds and 3 git commands to generate.