Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2013 20:42:32 GMT
From:      Thomas Zander <thomas.e.zander@googlemail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184768: [PATCH] audio/musicpd does not play wma files
Message-ID:  <201312142042.rBEKgW5k070829@oldred.freebsd.org>
Resent-Message-ID: <201312142050.rBEKo0oK067443@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312142042.rBEKgW5k070829>