diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-09-28 16:19:06 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-10-01 09:57:58 +0200 |
commit | 262e6f8430a821effb63af67e8f0bbbea9c3a754 (patch) | |
tree | b369c0d000f732306aceee15c7c88467f16a8d35 /libavfilter/graphparser.c | |
parent | 0548ab2e4257f9c6e7a7a57138504533a6ca5507 (diff) | |
download | ffmpeg-262e6f8430a821effb63af67e8f0bbbea9c3a754.tar.gz |
lavfi/avfilter: export AVFilter initialization state
This will allow the AVOption code to detect setting non-runtime options
after the filter has been initialized.
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r-- | libavfilter/graphparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 912804ecd6..a23e26d2e3 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -627,7 +627,8 @@ int avfilter_graph_segment_init(AVFilterGraphSegment *seg, int flags) if (p->filter_name) return fail_creation_pending(seg, p->filter_name, __func__); - if (!p->filter || fffilterctx(p->filter)->initialized) + if (!p->filter || + (fffilterctx(p->filter)->state_flags & AV_CLASS_STATE_INITIALIZED)) continue; ret = avfilter_init_dict(p->filter, NULL); |