Max Kellermann 6c602811df decoder/ffmepg: fill AudioFormat from AVCodecContext, not AVCodecParameters
`AVCodecParameters` contains values from the codec detected by
avformat_find_stream_info(), but after avcodec_open2(), a different
codec might be selected with a different `AVSampleFormat`.  This leads
to misinterpretation of data returned from FFmpeg, leading to random
noise or silence.

This was observed with FFmpeg 4.0.2 and a TS container file containing
MP2.  A mp3-float codec was detected returning `AV_SAMPLE_FMT_FLTP`,
but finally the `mpegaudiodec_fixed.c` was used, returning
`AV_SAMPLE_FMT_S16`.

By using the audio format from `AVCodecContext`, we ensure that MPD
and FFmpeg always agree on the actual audio format in the buffer.

This removes the FFmpeg bug workaround from commit e1b032cbad5 which I
assume is obsolete after 7 years.

Fixes #380
2018-11-04 22:30:50 +01:00
2018-11-04 19:47:04 +01:00
2013-04-17 00:37:30 +02:00
2018-11-02 18:55:49 +01:00
2018-11-02 18:55:49 +01:00
2018-10-16 21:26:04 +02:00
2018-10-31 17:59:54 +01:00
2018-11-04 19:47:04 +01:00
2014-07-14 19:04:46 +02:00
2017-05-15 23:01:49 +02:00

Music Player Daemon

http://www.musicpd.org

A daemon for playing music of various formats. Music is played through the server's audio device. The daemon stores info about all available music, and this info can be easily searched and retrieved. Player control, info retrieval, and playlist management can all be managed remotely.

For basic installation instructions read the manual.

Users

Developers

Legal

MPD is released under the GNU General Public License version 2, which is distributed in the COPYING file.

Description
music player daemon (fork)
Readme 57 MiB
Languages
C++ 94.2%
Meson 2.9%
Python 1.4%
Kotlin 0.9%
Java 0.3%
Other 0.2%