diff riff.c @ 4015:136be670d919 libavformat

Decode audio channel layout from RIFF/WAV file format.
author pross
date Wed, 05 Nov 2008 09:22:13 +0000
parents 549a09cf23fe
children bf23e96cf362
line wrap: on
line diff
--- a/riff.c	Wed Oct 29 00:16:50 2008 +0000
+++ b/riff.c	Wed Nov 05 09:22:13 2008 +0000
@@ -374,7 +374,7 @@
         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;