summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c
index 021a0e21ae..03afae6b13 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -367,7 +367,10 @@ static int vf_do_filter(struct vf_instance *vf, struct mp_image *img)
vf_fix_img_params(img, &vf->fmt_in);
if (vf->filter_ext) {
- return vf->filter_ext(vf, img);
+ int r = vf->filter_ext(vf, img);
+ if (r < 0)
+ MP_ERR(vf, "Error filtering frame.\n");
+ return r;
} else {
if (img) {
if (vf->filter)