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:
wm4 2014-04-13 12:30:57 +02:00
parent 8161f4374c
commit 7ded55f667
1 changed files with 1 additions and 0 deletions

View File

@ -390,6 +390,7 @@ static int config(struct vf_instance *vf, int width, int height,
const VSVideoInfo *vi = p->vsapi->getVideoInfo(p->out_node);
fmt = mp_from_vs(vi->format->id);
if (!fmt) {
MP_FATAL(vf, "Unsupported output format.\n");
destroy_vs(vf);
return 0;
}