aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/SndfileDecoderPlugin.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decoder/plugins/SndfileDecoderPlugin.cxx b/src/decoder/plugins/SndfileDecoderPlugin.cxx
index c656302f9..5aad2f16c 100644
--- a/src/decoder/plugins/SndfileDecoderPlugin.cxx
+++ b/src/decoder/plugins/SndfileDecoderPlugin.cxx
@@ -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();
}