diff options
author | wm4 <wm4@nowhere> | 2015-07-20 12:48:41 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-20 12:56:35 +0200 |
commit | 3252d352c901fb55f92d24385776374c25bcd704 (patch) | |
tree | 673dc600f46047bfc1b15fd281a76b8099f2c771 /common/codecs.h | |
parent | b0d1ac93cf07ad32b53a6d1f54ee9974d61539bd (diff) | |
download | mpv-3252d352c901fb55f92d24385776374c25bcd704.tar.bz2 mpv-3252d352c901fb55f92d24385776374c25bcd704.tar.xz |
demux_mkv: parse FLAC channel layouts
Handle a relatively recently introduced hack, that allows FLAC audio to
have arbitrary channel layouts, instead of just the predefined fixed
ones. This is actually supported by FFmpeg, but since the demuxer
(instead of the decoder) handles this in FFmpeg, we need to add special-
code to our mkv demuxer.
(The way FFmpeg does this seems a bit backwards, since now every demuxer
for a format that can handle FLAC needs to contain this logic as well.)
The FLAC hack is relatively terrible: we need to parse the FLAC headers,
look for a VorbisComment, parse the VorbisComment, and then retrieve
the magic WAVEFORMATEXTENSIBLE_CHANNEL_MASK entry. But the hack is
officially endorsed, as the official FLAC tools use it. (Although I
couldn't find a trace of it in the format specification. Should I be
surprised?)
Diffstat (limited to 'common/codecs.h')
0 files changed, 0 insertions, 0 deletions