mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/framesync: make framesync_class un-static
And rename to ff_framesync_class. More convenient for downstream users.
This commit is contained in:
parent
69b4d9736b
commit
a5032dc12a
|
@ -51,7 +51,7 @@ static const AVOption framesync_options[] = {
|
|||
0, AV_OPT_TYPE_CONST, { .i64 = TS_NEAREST }, .flags = FLAGS, .unit = "ts_sync_mode" },
|
||||
{ NULL }
|
||||
};
|
||||
static const AVClass framesync_class = {
|
||||
const AVClass ff_framesync_class = {
|
||||
.version = LIBAVUTIL_VERSION_INT,
|
||||
.class_name = "framesync",
|
||||
.item_name = framesync_name,
|
||||
|
@ -62,7 +62,7 @@ static const AVClass framesync_class = {
|
|||
|
||||
const AVClass *ff_framesync_child_class_iterate(void **iter)
|
||||
{
|
||||
const AVClass *c = *iter ? NULL : &framesync_class;
|
||||
const AVClass *c = *iter ? NULL : &ff_framesync_class;
|
||||
*iter = (void *)(uintptr_t)c;
|
||||
return c;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ void ff_framesync_preinit(FFFrameSync *fs)
|
|||
{
|
||||
if (fs->class)
|
||||
return;
|
||||
fs->class = &framesync_class;
|
||||
fs->class = &ff_framesync_class;
|
||||
av_opt_set_defaults(fs);
|
||||
}
|
||||
|
||||
|
|
|
@ -316,6 +316,7 @@ 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);
|
||||
extern const AVClass ff_framesync_class;
|
||||
|
||||
#define FRAMESYNC_DEFINE_PURE_CLASS(name, desc, func_prefix, options) \
|
||||
static const AVClass name##_class = { \
|
||||
|
|
Loading…
Reference in New Issue