mirror of https://github.com/mpv-player/mpv
9ac86d9e99
For a while, we used this to transfer PCM from demuxer to the filter chain. We had a special "codec" that mapped what MPlayer used to do (MPlayer passes the AF sample format over an extra field to ad_pcm, which specially interprets it). Do this by providing a mp_set_pcm_codec() function, which describes a sample format in a generic way, and sets the appropriate demuxer header fields so that libavcodec interprets it correctly. We use the fact that libavcodec has separate PCM decoders for each format. These are systematically named, so we can easily map them. This has the advantage that we can change the audio filter chain as we like, without losing features from the "rawaudio" demuxer. In fact, this commit also gets rid of the audio filter chain formats completely. Instead have an explicit list of PCM formats. (We could even just have the user pass libavcodec PCM decoder names directly, but that would be annoying in other ways.) |
||
---|---|---|
.. | ||
client_api_examples | ||
man | ||
client-api-changes.rst | ||
contribute.md | ||
crosscompile-mingw.md | ||
edl-mpv.rst | ||
encoding.rst | ||
release-policy.md | ||
tech-overview.txt | ||
waf-buildsystem.rst |