summaryrefslogtreecommitdiffstats
path: root/tinyDAV
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2016-08-17 13:04:14 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2016-08-17 13:04:14 -0500
commita82428db6bc38b8bf3bfc5554c33d90c919c6b45 (patch)
treebba2bfa920da3e0ecbf38a44621f43fa65046d95 /tinyDAV
parent8e5d8509f3049edb974f4b28026adb7cb89080fb (diff)
downloaddoubango-master.zip
doubango-master.tar.gz
Fix telepresence FTBFS due to missing libavconv functions on Ubuntu 16.04 LTSHEADmaster
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Diffstat (limited to 'tinyDAV')
-rwxr-xr-xtinyDAV/src/tdav.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tinyDAV/src/tdav.c b/tinyDAV/src/tdav.c
index e264f2b..8dca72b 100755
--- a/tinyDAV/src/tdav.c
+++ b/tinyDAV/src/tdav.c
@@ -147,6 +147,17 @@ static struct tsk_plugin_s* __dll_plugin_ipsec_wfp = tsk_null; /* IPSec implemen
#if HAVE_FFMPEG
# include <libavcodec/avcodec.h>
+# if LIBAVCODEC_VERSION_MAJOR >= 54
+ AVCodecContext *avcodec_alloc_context(void) {
+ return avcodec_alloc_context3(NULL);
+ }
+ void avcodec_get_context_defaults(AVCodecContext *s) {
+ avcodec_get_context_defaults3(s, NULL);
+ }
+ int avcodec_open(AVCodecContext *avctx, AVCodec *codec) {
+ return avcodec_open2(avctx, codec, NULL);
+ }
+# endif
#endif
static inline int _tdav_codec_plugins_collect();
OpenPOWER on IntegriCloud