diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index f8d71dec55..ebbc7d2194 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -154,6 +154,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref) { AVFilterContext *ctx = link->dst; IDETContext *idet = ctx->priv; + AVDictionary **metadata = avpriv_frame_get_metadatap(picref); if (idet->prev) av_frame_free(&idet->prev); @@ -177,6 +178,11 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref) filter(ctx); + av_dict_set_int(metadata, "lavfi.idet.tff", idet->prestat[TFF], 0); + av_dict_set_int(metadata, "lavfi.idet.bff", idet->prestat[BFF], 0); + av_dict_set_int(metadata, "lavfi.idet.progressive", idet->prestat[PROGRESSIVE], 0); + av_dict_set_int(metadata, "lavfi.idet.undetermined", idet->prestat[UNDETERMINED], 0); + return ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->cur)); }