Mercurial > mplayer.hg
comparison libvo/vo_aa.c @ 24227:cc567f93fb3b
Fix wrong calculation of nbooleans that causes a crash on 64 bit systems
author | reimar |
---|---|
date | Mon, 27 Aug 2007 17:53:35 +0000 |
parents | 69b7fad52ecc |
children | 451b928c38ee |
comparison
equal
deleted
inserted
replaced
24226:352d7d9422b5 | 24227:cc567f93fb3b |
---|---|
582 "-floyd_steinberg", "-error_distribution"}; | 582 "-floyd_steinberg", "-error_distribution"}; |
583 char *nobooleans_list[] = {"-nodim", "-nobold", "-noreverse", "-nonormal", | 583 char *nobooleans_list[] = {"-nodim", "-nobold", "-noreverse", "-nonormal", |
584 "-noboldfont", "-noinverse", "-noextended", "-noeight", "-nodither", | 584 "-noboldfont", "-noinverse", "-noextended", "-noeight", "-nodither", |
585 "-nofloyd_steinberg", "-noerror_distribution"}; | 585 "-nofloyd_steinberg", "-noerror_distribution"}; |
586 const int nstrings = sizeof(strings_list) / sizeof(char*); | 586 const int nstrings = sizeof(strings_list) / sizeof(char*); |
587 const int nbooleans = sizeof(booleans_list) / sizeof(int); | 587 const int nbooleans = sizeof(booleans_list) / sizeof(char*); |
588 const int nextra_opts = sizeof(extra_opts) / sizeof(opt_t); | 588 const int nextra_opts = sizeof(extra_opts) / sizeof(opt_t); |
589 const int nsubopts = nstrings + nbooleans + nextra_opts; | 589 const int nsubopts = nstrings + nbooleans + nextra_opts; |
590 int i, retval = 0; | 590 int i, retval = 0; |
591 | 591 |
592 subopts = calloc(nsubopts + 1, sizeof(opt_t)); | 592 subopts = calloc(nsubopts + 1, sizeof(opt_t)); |