diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2013-08-28 02:07:22 +0400 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-09-23 11:50:09 +0400 |
commit | 231e50157cc9a7a8b08ba3d0e566279fc6cbb800 (patch) | |
tree | ec04d590c371575edfa6635f2f41d0112cc7e296 /libavfilter/vf_psnr.c | |
parent | 53319d5c932867bcc84798622dd171b5c19165f0 (diff) |
lavfi/dualinput: reimplement on top of framesync.
Diffstat (limited to 'libavfilter/vf_psnr.c')
-rw-r--r-- | libavfilter/vf_psnr.c | 4 |
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; } |