decoder/sndfile: check InputStream::KnownSize()
This commit is contained in:
parent
194be51f05
commit
106e535577
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user