History

lavfi/mptestsrc: switch to an AVOptions-based system.

Clément Bœsch committed 13 years ago

Commit 4ecee691 parent 791da473 files · +2 −8Browse files

Unified · Split

3 files
  1. doc/filters.texi +1 −2
  2. libavfilter/avfilter.c +1 −0
  3. libavfilter/vsrc_mptestsrc.c +0 −6
doc/filters.texi+1−2
@@ -5992,8 +5992,7 @@ Generate various test patterns, as generated by the MPlayer test filter. · 5991 unmodified lines
59925992 The size of the generated video is fixed, and is 256x256.
59935993 This source is useful in particular for testing encoding features.
59945994
5995−This source accepts an optional sequence of @var{key}=@var{value} pairs,
5996−separated by ":". The description of the accepted options follows.
5995+This source accepts the following options:
59975996
59985997 @table @option
59995998
libavfilter/avfilter.c+1−0
@@ -685,6 +685,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 684 unmodified lines
685685 !strcmp(filter->filter->name, "lutyuv" ) ||
686686 !strcmp(filter->filter->name, "lutrgb" ) ||
687687 !strcmp(filter->filter->name, "mandelbrot" ) ||
688+ !strcmp(filter->filter->name, "mptestsrc" ) ||
688689 !strcmp(filter->filter->name, "negate" ) ||
689690 !strcmp(filter->filter->name, "overlay" ) ||
690691 !strcmp(filter->filter->name, "pad" ) ||
libavfilter/vsrc_mptestsrc.c+0−6
@@ -262,12 +262,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args) · 261 unmodified lines
262262 int64_t duration = -1;
263263 int ret;
264264
265− test->class = &mptestsrc_class;
266− av_opt_set_defaults(test);
267−
268− if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0)
269− return ret;
270−
271265 if ((test->duration) && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {
272266 av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration);
273267 return ret;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t