decoder/sndfile: check InputStream::KnownSize()
This commit is contained in:
		| @@ -58,6 +58,9 @@ sndfile_vio_get_filelen(void *user_data) | |||||||
| 	SndfileInputStream &sis = *(SndfileInputStream *)user_data; | 	SndfileInputStream &sis = *(SndfileInputStream *)user_data; | ||||||
| 	const InputStream &is = sis.is; | 	const InputStream &is = sis.is; | ||||||
|  |  | ||||||
|  | 	if (!is.KnownSize()) | ||||||
|  | 		return -1; | ||||||
|  |  | ||||||
| 	return is.GetSize(); | 	return is.GetSize(); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann