diff options
author | wm4 <wm4@nowhere> | 2014-09-24 22:55:50 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-24 22:55:50 +0200 |
commit | 9ac86d9e994aeb764207f4d0279b3d37266f79e6 (patch) | |
tree | e1d7ca4e241e8dbe551e9a65eb7dd1e0b4008876 /video/vdpau_functions.inc | |
parent | 8a8f65d73d7009b13571293d1de6284d42a318e8 (diff) | |
download | mpv-9ac86d9e994aeb764207f4d0279b3d37266f79e6.tar.bz2 mpv-9ac86d9e994aeb764207f4d0279b3d37266f79e6.tar.xz |
audio: decouple demux and audio decoder/filter sample formats
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.)
Diffstat (limited to 'video/vdpau_functions.inc')
0 files changed, 0 insertions, 0 deletions