wavpack: pass NULL if the .wvc file fails to open
The wavpack library seems to use the .wvc stream even if the OPEN_WVC flag is not set. In this case, pass NULL to be sure libwavpack won't use it.
This commit is contained in:
@@ -522,7 +522,9 @@ wavpack_streamdecode(struct decoder * decoder, struct input_stream *is)
|
||||
|
||||
wavpack_input_init(&isp, decoder, is);
|
||||
wpc = WavpackOpenFileInputEx(
|
||||
&mpd_is_reader, &isp, &isp_wvc, error, open_flags, 23
|
||||
&mpd_is_reader, &isp,
|
||||
open_flags & OPEN_WVC ? &isp_wvc : NULL,
|
||||
error, open_flags, 23
|
||||
);
|
||||
|
||||
if (wpc == NULL) {
|
||||
|
Reference in New Issue
Block a user