You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/subtitles: switch to an AVOptions-based system.
This commit is contained in:
@@ -5322,8 +5322,7 @@ To enable compilation of this filter you need to configure FFmpeg with
|
|||||||
libavformat to convert the passed subtitles file to ASS (Advanced Substation
|
libavformat to convert the passed subtitles file to ASS (Advanced Substation
|
||||||
Alpha) subtitles format.
|
Alpha) subtitles format.
|
||||||
|
|
||||||
This filter accepts the following named options, expressed as a
|
The filter accepts the following options:
|
||||||
sequence of @var{key}=@var{value} pairs, separated by ":".
|
|
||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
@item filename, f
|
@item filename, f
|
||||||
|
@@ -657,6 +657,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
|
|||||||
int ret=0;
|
int ret=0;
|
||||||
int anton_options =
|
int anton_options =
|
||||||
!strcmp(filter->filter->name, "aformat") ||
|
!strcmp(filter->filter->name, "aformat") ||
|
||||||
|
!strcmp(filter->filter->name, "ass") ||
|
||||||
!strcmp(filter->filter->name, "blackframe") ||
|
!strcmp(filter->filter->name, "blackframe") ||
|
||||||
!strcmp(filter->filter->name, "boxblur" ) ||
|
!strcmp(filter->filter->name, "boxblur" ) ||
|
||||||
!strcmp(filter->filter->name, "colormatrix") ||
|
!strcmp(filter->filter->name, "colormatrix") ||
|
||||||
@@ -691,6 +692,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
|
|||||||
!strcmp(filter->filter->name, "resample") ||
|
!strcmp(filter->filter->name, "resample") ||
|
||||||
!strcmp(filter->filter->name, "showspectrum") ||
|
!strcmp(filter->filter->name, "showspectrum") ||
|
||||||
!strcmp(filter->filter->name, "silencedetect") ||
|
!strcmp(filter->filter->name, "silencedetect") ||
|
||||||
|
!strcmp(filter->filter->name, "subtitles") ||
|
||||||
!strcmp(filter->filter->name, "thumbnail") ||
|
!strcmp(filter->filter->name, "thumbnail") ||
|
||||||
// !strcmp(filter->filter->name, "scale" ) ||
|
// !strcmp(filter->filter->name, "scale" ) ||
|
||||||
0
|
0
|
||||||
|
@@ -201,8 +201,6 @@ static const AVFilterPad ass_outputs[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *const shorthand[] = { "filename", NULL };
|
|
||||||
|
|
||||||
#if CONFIG_ASS_FILTER
|
#if CONFIG_ASS_FILTER
|
||||||
|
|
||||||
static const AVOption ass_options[] = {
|
static const AVOption ass_options[] = {
|
||||||
@@ -240,7 +238,6 @@ AVFilter avfilter_vf_ass = {
|
|||||||
.inputs = ass_inputs,
|
.inputs = ass_inputs,
|
||||||
.outputs = ass_outputs,
|
.outputs = ass_outputs,
|
||||||
.priv_class = &ass_class,
|
.priv_class = &ass_class,
|
||||||
.shorthand = shorthand,
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -365,6 +362,5 @@ AVFilter avfilter_vf_subtitles = {
|
|||||||
.inputs = ass_inputs,
|
.inputs = ass_inputs,
|
||||||
.outputs = ass_outputs,
|
.outputs = ass_outputs,
|
||||||
.priv_class = &subtitles_class,
|
.priv_class = &subtitles_class,
|
||||||
.shorthand = shorthand,
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user