mirror of https://github.com/mpv-player/mpv
Fix wrong calculation of nbooleans that causes a crash on 64 bit systems
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24247 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
949880a056
commit
3bcc77bea7
|
@ -584,7 +584,7 @@ static int parse_suboptions(const char *arg) {
|
|||
"-noboldfont", "-noinverse", "-noextended", "-noeight", "-nodither",
|
||||
"-nofloyd_steinberg", "-noerror_distribution"};
|
||||
const int nstrings = sizeof(strings_list) / sizeof(char*);
|
||||
const int nbooleans = sizeof(booleans_list) / sizeof(int);
|
||||
const int nbooleans = sizeof(booleans_list) / sizeof(char*);
|
||||
const int nextra_opts = sizeof(extra_opts) / sizeof(opt_t);
|
||||
const int nsubopts = nstrings + nbooleans + nextra_opts;
|
||||
int i, retval = 0;
|
||||
|
|
Loading…
Reference in New Issue