From 7591403566971eb19ba7bb16002eaa2689a637c7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 16 Nov 2008 20:42:08 +0100 Subject: input_stream: size==-1 means unknown size Define the special value "-1" as "unknown size". Previously, there was no indicator for streams with unknown size, which might confuse some decoders. --- src/decoder/aac_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/aac_plugin.c') diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index 95b19735a..d23d43b55 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -186,7 +186,7 @@ static void aac_parse_header(AacBuffer * b, float *length) if (length) *length = -1; - fileread = b->inStream->size; + fileread = b->inStream->size >= 0 ? b->inStream->size : 0; fillAacBuffer(b); -- cgit v1.2.3