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
7606f4a1
Commit
7606f4a1
authored
Mar 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/fps: make use of AV_OPT_TYPE_VIDEO_RATE
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
b19604cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
vf_fps.c
libavfilter/vf_fps.c
+1
-8
No files found.
libavfilter/vf_fps.c
View file @
7606f4a1
...
...
@@ -45,7 +45,6 @@ typedef struct FPSContext {
int64_t
pts
;
///< pts of the first frame currently in the fifo
AVRational
framerate
;
///< target framerate
char
*
fps
;
///< a string describing target framerate
int
rounding
;
///< AVRounding method for timestamps
/* statistics */
...
...
@@ -59,7 +58,7 @@ typedef struct FPSContext {
#define V AV_OPT_FLAG_VIDEO_PARAM
#define F AV_OPT_FLAG_FILTERING_PARAM
static
const
AVOption
fps_options
[]
=
{
{
"fps"
,
"A string describing desired output framerate"
,
OFFSET
(
f
ps
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"25"
},
.
flags
=
V
|
F
},
{
"fps"
,
"A string describing desired output framerate"
,
OFFSET
(
f
ramerate
),
AV_OPT_TYPE_VIDEO_RATE
,
{
.
str
=
"25"
},
.
flags
=
V
|
F
},
{
"round"
,
"set rounding method for timestamps"
,
OFFSET
(
rounding
),
AV_OPT_TYPE_INT
,
{
.
i64
=
AV_ROUND_NEAR_INF
},
0
,
5
,
V
|
F
,
"round"
},
{
"zero"
,
"round towards 0"
,
OFFSET
(
rounding
),
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_ROUND_ZERO
},
0
,
5
,
V
|
F
,
"round"
},
{
"inf"
,
"round away from 0"
,
OFFSET
(
rounding
),
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_ROUND_INF
},
0
,
5
,
V
|
F
,
"round"
},
...
...
@@ -74,12 +73,6 @@ AVFILTER_DEFINE_CLASS(fps);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
FPSContext
*
s
=
ctx
->
priv
;
int
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
;
}
if
(
!
(
s
->
fifo
=
av_fifo_alloc
(
2
*
sizeof
(
AVFrame
*
))))
return
AVERROR
(
ENOMEM
);
...
...
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