Unified · Split
| @@ -5992,8 +5992,7 @@ Generate various test patterns, as generated by the MPlayer test filter. · 5991 unmodified lines | |||
| 5992 | The size of the generated video is fixed, and is 256x256. | 5992 | The size of the generated video is fixed, and is 256x256. |
| 5993 | This source is useful in particular for testing encoding features. | 5993 | This source is useful in particular for testing encoding features. |
| 5994 | 5994 | ||
| 5995 | This source accepts an optional sequence of @var{key}=@var{value} pairs, | 5995 | This source accepts the following options: |
| 5996 | separated by ":". The description of the accepted options follows. | ||
| 5997 | 5996 | ||
| 5998 | @table @option | 5997 | @table @option |
| 5999 | 5998 | ||
| @@ -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" ) || |
| @@ -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; |