decoder/sndfile: check InputStream::KnownSize()

This commit is contained in:
Max Kellermann 2014-08-19 20:57:25 +02:00
parent 194be51f05
commit 106e535577

View File

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