Stricter build dependencies

pull/302/head
Frederic-Philippe Metz 10 years ago committed by Pawel Kuzak
parent 42216b86f7
commit a0c36c59ca

10
debian/control vendored

@ -4,11 +4,11 @@ Priority: extra
Maintainer: Sipwise Development Team <support@sipwise.com> Maintainer: Sipwise Development Team <support@sipwise.com>
Build-Depends: debhelper (>= 5), Build-Depends: debhelper (>= 5),
iptables-dev (>= 1.4), iptables-dev (>= 1.4),
libavcodec-dev, libavcodec-dev (>= 6:10),
libavfilter-dev, libavfilter-dev (>= 6:10),
libavformat-dev, libavformat-dev (>= 6:10),
libavresample-dev, libavresample-dev (>= 6:10),
libavutil-dev, libavutil-dev (>= 6:10),
libcurl4-openssl-dev | libcurl4-gnutls-dev | libcurl3-openssl-dev | libcurl3-gnutls-dev, libcurl4-openssl-dev | libcurl4-gnutls-dev | libcurl3-openssl-dev | libcurl3-gnutls-dev,
libevent-dev (>= 2.0), libevent-dev (>= 2.0),
libglib2.0-dev (>= 2.30), libglib2.0-dev (>= 2.30),

@ -1,3 +1,3 @@
daemon/rtpengine /usr/sbin/ daemon/rtpengine /usr/sbin/
recording-daemon/rtpengine-recording /usr/sbin/
etc/rtpengine.sample.conf /etc/rtpengine/ etc/rtpengine.sample.conf /etc/rtpengine/
recording-daemon/rtpengine-recording /usr/sbin/

@ -3,6 +3,7 @@
#include <libavformat/avformat.h> #include <libavformat/avformat.h>
#include <libavutil/audio_fifo.h> #include <libavutil/audio_fifo.h>
#include <libavutil/channel_layout.h> #include <libavutil/channel_layout.h>
#include <libavutil/mathematics.h>
#include <glib.h> #include <glib.h>
#include <stdint.h> #include <stdint.h>
#include <libavresample/avresample.h> #include <libavresample/avresample.h>
@ -378,7 +379,12 @@ void decoder_close(decoder_t *dec) {
if (!dec) if (!dec)
return; return;
/// XXX drain inputs and outputs /// XXX drain inputs and outputs
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56, 1, 0)
avcodec_free_context(&dec->avcctx); avcodec_free_context(&dec->avcctx);
#else
avcodec_close(dec->avcctx);
av_free(dec->avcctx);
#endif
av_frame_free(&dec->frame); av_frame_free(&dec->frame);
av_frame_free(&dec->swr_frame); av_frame_free(&dec->swr_frame);
avresample_free(&dec->avresample); avresample_free(&dec->avresample);

@ -4,6 +4,7 @@
#include <libavfilter/buffersrc.h> #include <libavfilter/buffersrc.h>
#include <libavfilter/buffersink.h> #include <libavfilter/buffersink.h>
#include <libavutil/channel_layout.h> #include <libavutil/channel_layout.h>
#include <libavutil/mathematics.h>
#include <inttypes.h> #include <inttypes.h>
#include <libavresample/avresample.h> #include <libavresample/avresample.h>
#include <libavutil/opt.h> #include <libavutil/opt.h>

Loading…
Cancel
Save