decoder/mpcdec: check InputStream::KnownSize()

This commit is contained in:
Max Kellermann 2014-08-19 20:55:51 +02:00
parent 2e64afca27
commit a862e363ea

View File

@ -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();
}