decoder/mpcdec: ignore empty frames

https://bugs.musicpd.org/view.php?id=4656 describes a crash due to
division by zero because frame.samples==0.  This should never happen,
but apparently can happen after seeking.  The best we can do is to
just ignore this frame.
This commit is contained in:
Max Kellermann
2017-03-01 16:12:33 +01:00
parent 3b6c285c2a
commit 29a7b2c5b5
2 changed files with 11 additions and 0 deletions

2
NEWS
View File

@@ -1,4 +1,6 @@
ver 0.20.6 (not yet released)
* decoder
- mpcdec: fix crash (division by zero) after seeking
ver 0.20.5 (2017/02/20)
* tags