filter/ffmpeg: detect the output sample format

Some FFmpeg filters change the sample format, and since MPD assumes
this never happens, this results in loud noise instead of music.  This
commit finally implements the TODO comment by sending one frame of
silence to the filter and checking the output frame's format.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1009
This commit is contained in:
Max Kellermann
2020-11-16 09:08:27 +01:00
parent 394f69bee1
commit 38b41fc3fd
5 changed files with 132 additions and 2 deletions

2
NEWS
View File

@@ -1,6 +1,8 @@
ver 0.22.4 (not yet released)
* decoder
- dsdiff: apply padding to odd-sized chunks
* filter
- ffmpeg: detect the output sample format
* output
- moveoutput: fix always_on and tag lost on move