mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 19:01:07 +00:00
Fix variable dereference before NULL check.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20103 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e0892295b5
commit
ab39d95f53
@ -1787,7 +1787,7 @@ static int parse_obj_presets(m_option_t* opt,char *name,
|
||||
m_obj_presets_t* obj_p = (m_obj_presets_t*)opt->priv;
|
||||
m_struct_t *in_desc,*out_desc;
|
||||
int s,i;
|
||||
unsigned char* pre = obj_p->presets;
|
||||
unsigned char* pre;
|
||||
char* pre_name = NULL;
|
||||
|
||||
if(!obj_p) {
|
||||
@ -1798,6 +1798,7 @@ static int parse_obj_presets(m_option_t* opt,char *name,
|
||||
if(!param)
|
||||
return M_OPT_MISSING_PARAM;
|
||||
|
||||
pre = obj_p->presets;
|
||||
in_desc = obj_p->in_desc;
|
||||
out_desc = obj_p->out_desc ? obj_p->out_desc : obj_p->in_desc;
|
||||
s = in_desc->size;
|
||||
|
Loading…
Reference in New Issue
Block a user