1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/framesync: make framesync_class un-static

And rename to ff_framesync_class. More convenient for downstream users.
This commit is contained in:
Niklas Haas 2024-04-24 11:40:46 +02:00
parent 69b4d9736b
commit a5032dc12a
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}

View File

@ -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 = { \