Commit 106e5355 authored by Max Kellermann's avatar Max Kellermann

decoder/sndfile: check InputStream::KnownSize()

parent 194be51f
......@@ -58,6 +58,9 @@ sndfile_vio_get_filelen(void *user_data)
SndfileInputStream &sis = *(SndfileInputStream *)user_data;
const InputStream &is = sis.is;
if (!is.KnownSize())
return -1;
return is.GetSize();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment