mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
lavfi/avfilter: export AVFilter initialization state
This will allow the AVOption code to detect setting non-runtime options after the filter has been initialized.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user