commit | 048c5029f50aea49456f9531f5be1cb2aa598a3e | [log] [tgz] |
---|---|---|
author | andrew@webrtc.org <andrew@webrtc.org> | Tue Dec 16 20:17:21 2014 |
committer | andrew@webrtc.org <andrew@webrtc.org> | Tue Dec 16 20:17:21 2014 |
tree | 7ee6cef5633a4169a2f3b043d3565b7da81dd093 | |
parent | 451a133f44af50ae7ff1b44e051bec0dca6318a5 [diff] |
Handle all permissible PCM fields with WavReader. I discovered the hard way that Adobe Audition writes an 18 byte format header with an extra (zero) extension size field. Although: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ indicates this field shouldn't exist for PCM, the documentation here: http://www-mmsp.ece.mcgill.ca/documents/AudioFormats/WAVE/WAVE.html doesn't list it as strictly forbidden, only that it _must_ exist for non-PCM formats. Audition can write metadata to the file after the audio data, which is also not forbidden. We now ensure to read only up to the audio payload length to avoid reading the metadata. R=aluebs@webrtc.org, kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/33629004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7915 4adac7df-926f-26a2-2b94-8c16560cd09d