From 42bd49276fa9ef63b20a7fadd10ff1cef8392659 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Sat, 9 Mar 2013 00:03:03 +0000 Subject: [PATCH] * Fix compile issue with old ffmpeg versions. --- NEWS | 4 ++++ metadata.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 2cdd8d1..d7f9649 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,10 @@ - Add configuration option to specify the user to run as. - Add support for limiting a media dir to multiple media types. - Force a rescan if we detect a new or missing media_dir entry. +- Fix crash caused by certain TiVo clients. +- Fix crash bug on video files with some ffmpeg library versions. +- Add support for TiVo MPEG-TS files. +- Add some logging and forking tweaks to work better with systemd. 1.0.25 - Released 13-July-2012 -------------------------------- diff --git a/metadata.c b/metadata.c index f2347dd..ecb7ce2 100644 --- a/metadata.c +++ b/metadata.c @@ -60,6 +60,10 @@ #define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO #endif +#if LIBAVUTIL_VERSION_INT < ((50<<16)+(13<<8)+0) +#define av_strerror(x, y, z) snprintf(y, z, "%d", x) +#endif + #define FLAG_TITLE 0x00000001 #define FLAG_ARTIST 0x00000002 #define FLAG_ALBUM 0x00000004