summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-13 12:30:57 +0200
committerwm4 <wm4@nowhere>2014-04-13 12:30:57 +0200
commit7ded55f6676a7a96981341ae48f9ac6198a418a6 (patch)
tree49996134dcc4aabbe8ce37486f2eb7fefe3d8d7f /video
parent8161f4374ca2723af6a0fad7a4bf137daede3d28 (diff)
downloadmpv-7ded55f6676a7a96981341ae48f9ac6198a418a6.tar.bz2
mpv-7ded55f6676a7a96981341ae48f9ac6198a418a6.tar.xz
vf_vapoursynth: print an error if VapourSynth returns an unknown format
Apparently there is no real format negotiation, so this can actually happen.
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf_vapoursynth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
index 58bc829c7f..930f15e723 100644
--- a/video/filter/vf_vapoursynth.c
+++ b/video/filter/vf_vapoursynth.c
@@ -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;
}