mirror of https://github.com/mpv-player/mpv
vf_vapoursynth: print an error if VapourSynth returns an unknown format
Apparently there is no real format negotiation, so this can actually happen.
This commit is contained in:
parent
8161f4374c
commit
7ded55f667
|
@ -390,6 +390,7 @@ static int config(struct vf_instance *vf, int width, int height,
|
||||||
const VSVideoInfo *vi = p->vsapi->getVideoInfo(p->out_node);
|
const VSVideoInfo *vi = p->vsapi->getVideoInfo(p->out_node);
|
||||||
fmt = mp_from_vs(vi->format->id);
|
fmt = mp_from_vs(vi->format->id);
|
||||||
if (!fmt) {
|
if (!fmt) {
|
||||||
|
MP_FATAL(vf, "Unsupported output format.\n");
|
||||||
destroy_vs(vf);
|
destroy_vs(vf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue