riff: don't overwrite bps from WAVEFORMATEX if EXTENSIBLE doesn't contain that data.
authorHendrik Leppkes <h.leppkes@gmail.com>
Wed, 2 May 2012 14:34:45 +0000 (16:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Jun 2012 11:25:50 +0000 (13:25 +0200)
commit24e7a22e1fda8b5b18307a35f0511e659de76389
tree4cd924f791d82a277b86e7e0863f5a25f792fd80
parentcb08b6efc90b95c2200ca66850c1ec3b95df34be
riff: don't overwrite bps from WAVEFORMATEX if EXTENSIBLE doesn't contain that data.

According to the specification on the MSDN [1], 0 is valid for that particular field, and it should be ignored in that case.

[1]: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757714(v=vs.85).aspx

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/riff.c