decoder/mpcdec: check InputStream::KnownSize()
This commit is contained in:
parent
2e64afca27
commit
a862e363ea
@ -84,6 +84,9 @@ mpc_getsize_cb(mpc_reader *reader)
|
||||
struct mpc_decoder_data *data =
|
||||
(struct mpc_decoder_data *)reader->data;
|
||||
|
||||
if (!data->is.KnownSize())
|
||||
return -1;
|
||||
|
||||
return data->is.GetSize();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user