avfilter/vf_zoompan: fix specific corner case when no frame was ever requested from...
authorPaul B Mahol <onemda@gmail.com>
Thu, 7 Sep 2017 14:49:46 +0000 (16:49 +0200)
committerPaul B Mahol <onemda@gmail.com>
Thu, 7 Sep 2017 14:49:46 +0000 (16:49 +0200)
Reported-by: Nicolas George
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_zoompan.c

index 14d0a17..0635171 100644 (file)
@@ -133,6 +133,7 @@ static int config_output(AVFilterLink *outlink)
     outlink->time_base = av_inv_q(s->framerate);
     outlink->frame_rate = s->framerate;
     s->desc = av_pix_fmt_desc_get(outlink->format);
+    s->finished = 1;
 
     ret = av_expr_parse(&s->zoom_expr, s->zoom_expr_str, var_names, NULL, NULL, NULL, NULL, 0, ctx);
     if (ret < 0)