You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
avfilter/avfilter: Avoid allocation for AVFilterInternal
To do this, allocate AVFilterInternal jointly with AVFilterContext and rename it to FFFilterContext in the process (similarly to AVStream/FFStream). The AVFilterInternal* will be removed from AVFilterContext on the next major bump. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -626,7 +626,7 @@ 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 || p->filter->internal->initialized)
|
||||
if (!p->filter || fffilterctx(p->filter)->initialized)
|
||||
continue;
|
||||
|
||||
ret = avfilter_init_dict(p->filter, NULL);
|
||||
|
||||
Reference in New Issue
Block a user