mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
A playlist entry number of 0 is invalid for pls playlists.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30792 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4a432dc1ee
commit
7e23f68cf7
@ -256,7 +256,7 @@ pls_read_entry(char* line,pls_entry_t** _e,int* _max_entry,char** val) {
|
||||
}
|
||||
|
||||
num = atoi(line);
|
||||
if(num < 0 || num > limit) {
|
||||
if(num <= 0 || num > limit) {
|
||||
if (max_entry >= limit) {
|
||||
mp_msg(MSGT_PLAYTREE, MSGL_WARN, "Too many index entries\n");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user