diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-01 13:23:16 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-01 13:23:16 +0000 |
commit | 92cd6dc3e916ae4275ff05d2b238fc778cfbfc6b (patch) | |
tree | 199e6ca232ebd36a119a088869329875e175d086 /libao2 | |
parent | f102ac7a8c62491761b7b3d32baa87dcb665f9ed (diff) | |
download | mpv-92cd6dc3e916ae4275ff05d2b238fc778cfbfc6b.tar.bz2 mpv-92cd6dc3e916ae4275ff05d2b238fc778cfbfc6b.tar.xz |
Simplify range-checking functions for subopt parsing.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30165 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r-- | libao2/ao_alsa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libao2/ao_alsa.c b/libao2/ao_alsa.c index ba49231b28..70cd92198b 100644 --- a/libao2/ao_alsa.c +++ b/libao2/ao_alsa.c @@ -265,9 +265,7 @@ static void print_help (void) static int str_maxlen(void *strp) { strarg_t *str = strp; - if (str->len > ALSA_DEVICE_SIZE) - return 0; - return 1; + return str->len <= ALSA_DEVICE_SIZE; } static int try_open_device(const char *device, int open_mode, int try_ac3) |