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
5992The size of the generated video is fixed, and is 256x256.5992The size of the generated video is fixed, and is 256x256.
5993This source is useful in particular for testing encoding features.5993This source is useful in particular for testing encoding features.
5994 5994
5995This source accepts an optional sequence of @var{key}=@var{value} pairs,5995This source accepts the following options:
5996separated by ":". The description of the accepted options follows.
5997 5996
5998@table @option5997@table @option
5999 5998
libavfilter/avfilter.c+1−0
@@ -685,6 +685,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 684 unmodified lines
685 !strcmp(filter->filter->name, "lutyuv" ) ||685 !strcmp(filter->filter->name, "lutyuv" ) ||
686 !strcmp(filter->filter->name, "lutrgb" ) ||686 !strcmp(filter->filter->name, "lutrgb" ) ||
687 !strcmp(filter->filter->name, "mandelbrot" ) ||687 !strcmp(filter->filter->name, "mandelbrot" ) ||
688 !strcmp(filter->filter->name, "mptestsrc" ) ||
688 !strcmp(filter->filter->name, "negate" ) ||689 !strcmp(filter->filter->name, "negate" ) ||
689 !strcmp(filter->filter->name, "overlay" ) ||690 !strcmp(filter->filter->name, "overlay" ) ||
690 !strcmp(filter->filter->name, "pad" ) ||691 !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
262 int64_t duration = -1;262 int64_t duration = -1;
263 int ret;263 int ret;
264 264
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
271 if ((test->duration) && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {265 if ((test->duration) && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {
272 av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration);266 av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration);
273 return ret;267 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