Skip to content

Commit a5032dc

Browse files
committed
avfilter/framesync: make framesync_class un-static
And rename to ff_framesync_class. More convenient for downstream users.
1 parent 69b4d97 commit a5032dc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

libavfilter/framesync.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static const AVOption framesync_options[] = {
5151
0, AV_OPT_TYPE_CONST, { .i64 = TS_NEAREST }, .flags = FLAGS, .unit = "ts_sync_mode" },
5252
{ NULL }
5353
};
54-
static const AVClass framesync_class = {
54+
const AVClass ff_framesync_class = {
5555
.version = LIBAVUTIL_VERSION_INT,
5656
.class_name = "framesync",
5757
.item_name = framesync_name,
@@ -62,7 +62,7 @@ static const AVClass framesync_class = {
6262

6363
const AVClass *ff_framesync_child_class_iterate(void **iter)
6464
{
65-
const AVClass *c = *iter ? NULL : &framesync_class;
65+
const AVClass *c = *iter ? NULL : &ff_framesync_class;
6666
*iter = (void *)(uintptr_t)c;
6767
return c;
6868
}
@@ -79,7 +79,7 @@ void ff_framesync_preinit(FFFrameSync *fs)
7979
{
8080
if (fs->class)
8181
return;
82-
fs->class = &framesync_class;
82+
fs->class = &ff_framesync_class;
8383
av_opt_set_defaults(fs);
8484
}
8585

libavfilter/framesync.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ int ff_framesync_dualinput_get(FFFrameSync *fs, AVFrame **f0, AVFrame **f1);
316316
int ff_framesync_dualinput_get_writable(FFFrameSync *fs, AVFrame **f0, AVFrame **f1);
317317

318318
const AVClass *ff_framesync_child_class_iterate(void **iter);
319+
extern const AVClass ff_framesync_class;
319320

320321
#define FRAMESYNC_DEFINE_PURE_CLASS(name, desc, func_prefix, options) \
321322
static const AVClass name##_class = { \

0 commit comments

Comments
 (0)