mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
framesync: switch to child_class_iterate()
This commit is contained in:
parent
aba98de6b8
commit
344149cf01
@ -53,6 +53,13 @@ static const AVClass framesync_class = {
|
||||
.parent_log_context_offset = OFFSET(parent),
|
||||
};
|
||||
|
||||
const AVClass *ff_framesync_child_class_iterate(void **iter)
|
||||
{
|
||||
const AVClass *c = *iter ? NULL : &framesync_class;
|
||||
*iter = (void *)(uintptr_t)c;
|
||||
return c;
|
||||
}
|
||||
|
||||
enum {
|
||||
STATE_BOF,
|
||||
STATE_RUN,
|
||||
|
@ -297,6 +297,8 @@ int ff_framesync_dualinput_get(FFFrameSync *fs, AVFrame **f0, AVFrame **f1);
|
||||
*/
|
||||
int ff_framesync_dualinput_get_writable(FFFrameSync *fs, AVFrame **f0, AVFrame **f1);
|
||||
|
||||
const AVClass *ff_framesync_child_class_iterate(void **iter);
|
||||
|
||||
#define FRAMESYNC_DEFINE_CLASS(name, context, field) \
|
||||
static int name##_framesync_preinit(AVFilterContext *ctx) { \
|
||||
context *s = ctx->priv; \
|
||||
@ -318,6 +320,7 @@ static const AVClass name##_class = { \
|
||||
.version = LIBAVUTIL_VERSION_INT, \
|
||||
.category = AV_CLASS_CATEGORY_FILTER, \
|
||||
.child_class_next = name##_child_class_next, \
|
||||
.child_class_iterate = ff_framesync_child_class_iterate, \
|
||||
.child_next = name##_child_next, \
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user