Commit 9215b831 authored by pross's avatar pross

Decode audio channel layout from RIFF/WAV file format.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15774 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5a796faa
...@@ -374,7 +374,7 @@ void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size) ...@@ -374,7 +374,7 @@ void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size)
cbSize = FFMIN(size, cbSize); cbSize = FFMIN(size, cbSize);
if (cbSize >= 22 && id == 0xfffe) { /* WAVEFORMATEXTENSIBLE */ if (cbSize >= 22 && id == 0xfffe) { /* WAVEFORMATEXTENSIBLE */
codec->bits_per_coded_sample = get_le16(pb); 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 */ id = get_le32(pb); /* 4 first bytes of GUID */
url_fskip(pb, 12); /* skip end of GUID */ url_fskip(pb, 12); /* skip end of GUID */
cbSize -= 22; cbSize -= 22;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment