You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/vf_psnr: add timeline support
This commit is contained in:
@@ -154,7 +154,7 @@ static int do_psnr(FFFrameSync *fs)
|
|||||||
ret = ff_framesync_dualinput_get(fs, &master, &ref);
|
ret = ff_framesync_dualinput_get(fs, &master, &ref);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
if (!ref)
|
if (ctx->is_disabled || !ref)
|
||||||
return ff_filter_frame(ctx->outputs[0], master);
|
return ff_filter_frame(ctx->outputs[0], master);
|
||||||
metadata = &master->metadata;
|
metadata = &master->metadata;
|
||||||
|
|
||||||
@@ -427,4 +427,5 @@ AVFilter ff_vf_psnr = {
|
|||||||
.priv_class = &psnr_class,
|
.priv_class = &psnr_class,
|
||||||
.inputs = psnr_inputs,
|
.inputs = psnr_inputs,
|
||||||
.outputs = psnr_outputs,
|
.outputs = psnr_outputs,
|
||||||
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user