aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/aac_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/aac_plugin.c')
-rw-r--r--src/decoder/aac_plugin.c2
1 files changed, 1 insertions, 1 deletions
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);