{ "half_life", "half life of cumulative statistics", OFFSET(half_life), AV_OPT_TYPE_FLOAT, {.dbl = 0.0}, -1, INT_MAX, FLAGS },
+ { "analyze_interlaced_flag", "set number of frames to use to determine if the interlace flag is accurate", OFFSET(analyze_interlaced_flag), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, FLAGS },
{ NULL }
};
@@ -235,8+236,32 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref)
AVFilterContext *ctx = link->dst;
IDETContext *idet = ctx->priv;
- if (idet->prev)
- av_frame_free(&idet->prev);
+ // initial frame(s) and not interlaced, just pass through for