lavfi/flite: switch to AVOption-based system

This commit is contained in:
Stefano Sabatini 2013-04-11 21:08:46 +02:00
parent 160ed967f4
commit 976e3439ed
3 changed files with 1 additions and 13 deletions

View File

@ -1664,10 +1664,7 @@ To enable compilation of this filter you need to configure FFmpeg with
Note that the flite library is not thread-safe. Note that the flite library is not thread-safe.
The source accepts parameters as a list of @var{key}=@var{value} pairs, The filter accepts the following options:
separated by ":".
The description of the accepted parameters follows.
@table @option @table @option

View File

@ -136,12 +136,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
FliteContext *flite = ctx->priv; FliteContext *flite = ctx->priv;
int ret = 0; int ret = 0;
flite->class = &flite_class;
av_opt_set_defaults(flite);
if ((ret = av_set_options_string(flite, args, "=", ":")) < 0)
return ret;
if (flite->list_voices) { if (flite->list_voices) {
list_voices(ctx, "\n"); list_voices(ctx, "\n");
return AVERROR_EXIT; return AVERROR_EXIT;
@ -200,8 +194,6 @@ static av_cold void uninit(AVFilterContext *ctx)
{ {
FliteContext *flite = ctx->priv; FliteContext *flite = ctx->priv;
av_opt_free(flite);
if (!--flite->voice_entry->usage_count) if (!--flite->voice_entry->usage_count)
flite->voice_entry->unregister_fn(flite->voice); flite->voice_entry->unregister_fn(flite->voice);
flite->voice = NULL; flite->voice = NULL;

View File

@ -678,7 +678,6 @@ static const char *const filters_left_to_update[] = {
"aconvert", "aconvert",
"atempo", "atempo",
"buffer", "buffer",
"flite",
"mp", "mp",
"pan", "pan",
"scale", "scale",