mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Decode audio channel layout from RIFF/WAV file format.
Originally committed as revision 15774 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
dcc37c9b6a
commit
4fd71a0ee8
@ -374,7 +374,7 @@ void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size)
|
||||
cbSize = FFMIN(size, cbSize);
|
||||
if (cbSize >= 22 && id == 0xfffe) { /* WAVEFORMATEXTENSIBLE */
|
||||
codec->bits_per_coded_sample = get_le16(pb);
|
||||
get_le32(pb); /* dwChannelMask */
|
||||
codec->channel_layout = get_le32(pb); /* dwChannelMask */
|
||||
id = get_le32(pb); /* 4 first bytes of GUID */
|
||||
url_fskip(pb, 12); /* skip end of GUID */
|
||||
cbSize -= 22;
|
||||
|
Loading…
Reference in New Issue
Block a user