From 08eb13c05c606fa7387f4f2e9109ba81450109fa Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 21 May 2023 14:47:30 +0200 Subject: [PATCH] avfilter/f_graphmonitor: add missing queue flag --- libavfilter/f_graphmonitor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index a32e8b5359..1184ba2f7c 100644 --- a/libavfilter/f_graphmonitor.c +++ b/libavfilter/f_graphmonitor.c @@ -112,6 +112,7 @@ static const AVOption graphmonitor_options[] = { { "f", "set flags", OFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64=FLAG_QUEUE}, 0, INT_MAX, VFR, "flags" }, { "none", NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_NONE}, 0, 0, VFR, "flags" }, { "all", NULL, 0, AV_OPT_TYPE_CONST, {.i64=INT_MAX}, 0, 0, VFR, "flags" }, + { "queue", NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_QUEUE}, 0, 0, VFR, "flags" }, { "frame_count_in", NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_FCOUT}, 0, 0, VFR, "flags" }, { "frame_count_out", NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_FCIN}, 0, 0, VFR, "flags" }, { "frame_count_delta",NULL, 0, AV_OPT_TYPE_CONST, {.i64=FLAG_FC_DELTA},0, 0, VFR, "flags" }, @@ -384,8 +385,9 @@ static int create_frame(AVFilterContext *ctx, int64_t pts) { GraphMonitorContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; - AVFrame *out; int ret, len, xpos, ypos = 0; + char buffer[1024]; + AVFrame *out; out = ff_get_video_buffer(outlink, outlink->w, outlink->h); if (!out) @@ -397,7 +399,6 @@ static int create_frame(AVFilterContext *ctx, int64_t pts) for (int i = 0; i < ctx->graph->nb_filters; i++) { AVFilterContext *filter = ctx->graph->filters[i]; - char buffer[1024] = { 0 }; if ((s->mode & MODE_COMPACT) && !filter_have_queued(filter)) continue;