aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_psnr.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-08-28 00:07:22 +0200
committerNicolas George <nicolas.george@normalesup.org>2013-09-23 09:50:09 +0200
commit231e50157cc9a7a8b08ba3d0e566279fc6cbb800 (patch)
treeec04d590c371575edfa6635f2f41d0112cc7e296 /libavfilter/vf_psnr.c
parent53319d5c932867bcc84798622dd171b5c19165f0 (diff)
downloadffmpeg-231e50157cc9a7a8b08ba3d0e566279fc6cbb800.tar.gz
lavfi/dualinput: reimplement on top of framesync.
Diffstat (limited to 'libavfilter/vf_psnr.c')
-rw-r--r--libavfilter/vf_psnr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
index bb0dbe0681..c4af4ac7c6 100644
--- a/libavfilter/vf_psnr.c
+++ b/libavfilter/vf_psnr.c
@@ -305,13 +305,17 @@ static int config_input_ref(AVFilterLink *inlink)
static int config_output(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
+ PSNRContext *s = ctx->priv;
AVFilterLink *mainlink = ctx->inputs[0];
+ int ret;
outlink->w = mainlink->w;
outlink->h = mainlink->h;
outlink->time_base = mainlink->time_base;
outlink->sample_aspect_ratio = mainlink->sample_aspect_ratio;
outlink->frame_rate = mainlink->frame_rate;
+ if ((ret = ff_dualinput_init(ctx, &s->dinput)) < 0)
+ return ret;
return 0;
}