From 1cc4c034d004d72a0c590737586b2ed150451cdf Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 6 May 2016 00:30:58 +0200 Subject: [PATCH] [filescanner] Add support for Monkey's audio --- src/filescanner_ffmpeg.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/filescanner_ffmpeg.c b/src/filescanner_ffmpeg.c index 631e553d..65485743 100644 --- a/src/filescanner_ffmpeg.c +++ b/src/filescanner_ffmpeg.c @@ -628,6 +628,17 @@ scan_metadata_ffmpeg(char *file, struct media_file_info *mfi) extra_md_map = md_map_vorbis; break; +#if LIBAVCODEC_VERSION_MAJOR >= 55 || (LIBAVCODEC_VERSION_MAJOR == 54 && LIBAVCODEC_VERSION_MINOR >= 35) + case AV_CODEC_ID_APE: +#else + case CODEC_ID_APE: +#endif + DPRINTF(E_DBG, L_SCAN, "APE\n"); + mfi->type = strdup("ape"); + mfi->codectype = strdup("ape"); + mfi->description = strdup("Monkey's audio"); + break; + #if LIBAVCODEC_VERSION_MAJOR >= 55 || (LIBAVCODEC_VERSION_MAJOR == 54 && LIBAVCODEC_VERSION_MINOR >= 35) case AV_CODEC_ID_MUSEPACK7: case AV_CODEC_ID_MUSEPACK8: