ports/184768: [PATCH] audio/musicpd does not play wma files
Thomas Zander
thomas.e.zander at googlemail.com
Sat Dec 14 20:50:01 UTC 2013
>Number: 184768
>Category: ports
>Synopsis: [PATCH] audio/musicpd does not play wma files
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 14 20:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Thomas Zander
>Release:
>Organization:
>Environment:
>Description:
Since musicpd uses ffmpeg >= 1.0, it does no longer play wma files.
A trivial patch for this change to the ffmpeg API has been committed upstream but did not make it into a release yet, see
https://github.com/bjaglin/mpd/commit/a84774fd46e4f3b6147bfd3d19ff4841bde8c98d
Since we don't know when the next release of mpd with this patch will be, we should include this into our ports tree for now.
>How-To-Repeat:
Play any wma or asf file that works in mplayer. It won't work in the ports version of musicpd.
>Fix:
Patch is attached. Just place it in ${PORTSDIR}/audio/musicpd/files. Rebuild musicpd. All good :-)
Patch attached with submission follows:
--- src/decoder/ffmpeg_decoder_plugin.c.orig 2013-01-07 01:39:40.000000000 +0100
+++ src/decoder/ffmpeg_decoder_plugin.c 2013-12-14 21:22:19.284609914 +0100
@@ -395,6 +395,11 @@
#endif
return SAMPLE_FORMAT_S32;
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,17,0)
+ case AV_SAMPLE_FMT_FLTP:
+ return SAMPLE_FORMAT_FLOAT;
+#endif
+
default:
break;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list