decoder/wavpack: fix crash bug

This commit is contained in:
Max Kellermann 2017-01-08 14:36:04 +01:00
parent 58fb36bdb9
commit c82b03a74c
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.20.1 (not yet released)
* input
- curl: fix crash bug
* decoder
- wavpack: fix crash bug
* storage
- curl: new storage plugin for WebDAV (work in progress)
* mixer

View File

@ -536,7 +536,7 @@ wavpack_streamdecode(DecoderClient &client, InputStream &is)
auto is_wvc = wavpack_open_wvc(client, is.GetURI());
if (is_wvc) {
open_flags |= OPEN_WVC;
can_seek &= wvc->is.IsSeekable();
can_seek &= is_wvc->IsSeekable();
wvc.reset(new WavpackInput(&client, *is_wvc));
}