mirror of https://github.com/mpv-player/mpv
vf_vapoursynth: error out early if the file sub-option is not set
Instead of crashing by possibly passing a NULL pointer to VapourSynth.
This commit is contained in:
parent
f3043a77a3
commit
8161f4374c
|
@ -443,6 +443,10 @@ static int vf_open(vf_instance_t *vf)
|
|||
vf->control = control;
|
||||
vf->uninit = uninit;
|
||||
p->buffered = talloc_array(vf, struct mp_image *, p->cfg_maxbuffer);
|
||||
if (!p->cfg_file || !p->cfg_file[0]) {
|
||||
MP_FATAL(vf, "'file' parameter must be set.\n");
|
||||
goto error;
|
||||
}
|
||||
if (!vsscript_init())
|
||||
goto error;
|
||||
p->vs_initialized = true;
|
||||
|
|
Loading…
Reference in New Issue