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
f13ab299
Commit
f13ab299
authored
Feb 25, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_fps: switch to an AVOptions-based system.
parent
a39c1540
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
vf_fps.c
libavfilter/vf_fps.c
+1
-10
No files found.
libavfilter/vf_fps.c
View file @
f13ab299
...
...
@@ -69,20 +69,10 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
FPSContext
*
s
=
ctx
->
priv
;
int
ret
;
s
->
class
=
&
class
;
av_opt_set_defaults
(
s
);
if
((
ret
=
av_set_options_string
(
s
,
args
,
"="
,
":"
))
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing the options string %s.
\n
"
,
args
);
return
ret
;
}
if
((
ret
=
av_parse_video_rate
(
&
s
->
framerate
,
s
->
fps
))
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error parsing framerate %s.
\n
"
,
s
->
fps
);
return
ret
;
}
av_opt_free
(
s
);
if
(
!
(
s
->
fifo
=
av_fifo_alloc
(
2
*
sizeof
(
AVFrame
*
))))
return
AVERROR
(
ENOMEM
);
...
...
@@ -290,6 +280,7 @@ AVFilter avfilter_vf_fps = {
.
uninit
=
uninit
,
.
priv_size
=
sizeof
(
FPSContext
),
.
priv_class
=
&
class
,
.
inputs
=
avfilter_vf_fps_inputs
,
.
outputs
=
avfilter_vf_fps_outputs
,
...
...
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