[FFmpeg-cvslog] r15774 - trunk/libavformat/riff.c

pross subversion
Wed Nov 5 10:22:14 CET 2008


Author: pross
Date: Wed Nov  5 10:22:13 2008
New Revision: 15774

Log:
Decode audio channel layout from RIFF/WAV file format.

Modified:
   trunk/libavformat/riff.c

Modified: trunk/libavformat/riff.c
==============================================================================
--- trunk/libavformat/riff.c	(original)
+++ trunk/libavformat/riff.c	Wed Nov  5 10:22:13 2008
@@ -374,7 +374,7 @@ void get_wav_header(ByteIOContext *pb, A
         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;




More information about the ffmpeg-cvslog mailing list