diff options
Diffstat (limited to '')
-rw-r--r-- | src/playerData.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/playerData.c b/src/playerData.c index 3f22483d1..07b0dfb3c 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -51,6 +51,11 @@ void initPlayerData() { buffered_chunks = bufferSize/CHUNK_SIZE; + if(buffered_chunks >= 1<<15) { + ERROR("buffer size \"%i\" is too big\n",bufferSize); + exit(-1); + } + perc = strtod((getConf())[CONF_BUFFER_BEFORE_PLAY],&test); if(*test!='%' || perc<0 || perc>100) { ERROR("buffered before play \"%s\" is not a positive " |