Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
4ecee69b
Commit
4ecee69b
authored
Apr 10, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/mptestsrc: switch to an AVOptions-based system.
parent
791da470
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
filters.texi
doc/filters.texi
+1
-2
avfilter.c
libavfilter/avfilter.c
+1
-0
vsrc_mptestsrc.c
libavfilter/vsrc_mptestsrc.c
+0
-6
No files found.
doc/filters.texi
View file @
4ecee69b
...
...
@@ -5992,8 +5992,7 @@ Generate various test patterns, as generated by the MPlayer test filter.
The size of the generated video is fixed, and is 256x256.
This source is useful in particular for testing encoding features.
This source accepts an optional sequence of @var{key}=@var{value} pairs,
separated by ":". The description of the accepted options follows.
This source accepts the following options:
@table @option
...
...
libavfilter/avfilter.c
View file @
4ecee69b
...
...
@@ -685,6 +685,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!
strcmp
(
filter
->
filter
->
name
,
"lutyuv"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"lutrgb"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"mandelbrot"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"mptestsrc"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"negate"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"overlay"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"pad"
)
||
...
...
libavfilter/vsrc_mptestsrc.c
View file @
4ecee69b
...
...
@@ -262,12 +262,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
int64_t
duration
=
-
1
;
int
ret
;
test
->
class
=
&
mptestsrc_class
;
av_opt_set_defaults
(
test
);
if
((
ret
=
(
av_set_options_string
(
test
,
args
,
"="
,
":"
)))
<
0
)
return
ret
;
if
((
test
->
duration
)
&&
(
ret
=
av_parse_time
(
&
duration
,
test
->
duration
,
1
))
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid duration: '%s'
\n
"
,
test
->
duration
);
return
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment