aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2008-11-05 09:22:13 +0000
committerPeter Ross <pross@xvid.org>2008-11-05 09:22:13 +0000
commit4fd71a0ee83f03fb88127a7f9b1a2e1d5c66b551 (patch)
tree0f9ad90a764d702254e3cba712541c3172e10af0
parentdcc37c9b6aa1a456087cd9ab020939764c9f0044 (diff)
downloadffmpeg-4fd71a0ee83f03fb88127a7f9b1a2e1d5c66b551.tar.gz
Decode audio channel layout from RIFF/WAV file format.
Originally committed as revision 15774 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/riff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 7b2682ae1e..ae6b7baca8 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -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;