mirror of https://github.com/mpv-player/mpv
m_option: fix segfault in parse_chmap
This commit is contained in:
parent
bc8815d69f
commit
3edb563b23
|
@ -1635,7 +1635,8 @@ static int parse_chmap(const m_option_t *opt, struct bstr name,
|
|||
return M_OPT_INVALID;
|
||||
}
|
||||
|
||||
*(struct mp_chmap *)dst = res;
|
||||
if (dst)
|
||||
*(struct mp_chmap *)dst = res;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue