]> git.sesse.net Git - ffmpeg/commit
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)
committerAnton Khirnov <anton@khirnov.net>
Fri, 22 Jul 2016 17:08:12 +0000 (19:08 +0200)
commit7f549b8338ed3775fec4bf10421ff5744e5866dd
tree708bf5a89e3557de7e88ba0174815623fe459b5a
parent6135c3b61e084be93c0876cecd06f4e764f961c0
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

Bug-Id: 950

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/riffdec.c