Every filter exposing the framesync options via its child_next callback already calls framesync_preinit() in its preinit callback. So the filter is already preinited whenever its child_next is called.
Showing the changes to libavfilter/framesync.c (1 of 2 files). Show all
Unified · Split
| @@ -68,11 +68,6 @@ enum { · 67 unmodified lines | |||
| 68 | 68 | ||
| 69 | static int consume_from_fifos(FFFrameSync *fs); | 69 | static int consume_from_fifos(FFFrameSync *fs); |
| 70 | 70 | ||
| 71 | const AVClass *ff_framesync_get_class(void) | ||
| 72 | { | ||
| 73 | return &framesync_class; | ||
| 74 | } | ||
| 75 | |||
| 76 | void ff_framesync_preinit(FFFrameSync *fs) | 71 | void ff_framesync_preinit(FFFrameSync *fs) |
| 77 | { | 72 | { |
| 78 | if (fs->class) | 73 | if (fs->class) |