Merge tag 'v0.20.6'

release v0.20.6
This commit is contained in:
Max Kellermann
2017-03-10 17:02:32 +01:00
12 changed files with 86 additions and 12 deletions

View File

@@ -207,6 +207,15 @@ mpcdec_decode(DecoderClient &client, InputStream &is)
if (frame.bits == -1)
break;
if (frame.samples <= 0) {
/* empty frame - this has been observed to
happen spuriously after seeking; skip this
obscure frame, and hope libmpcdec
recovers */
cmd = client.GetCommand();
continue;
}
mpc_uint32_t ret = frame.samples;
ret *= info.channels;