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
fdb93996
Commit
fdb93996
authored
Jan 17, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_showinfo: show timebase & framerate too
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7849ce43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
vf_showinfo.c
libavfilter/vf_showinfo.c
+27
-1
No files found.
libavfilter/vf_showinfo.c
View file @
fdb93996
...
...
@@ -162,11 +162,36 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
return
ff_filter_frame
(
inlink
->
dst
->
outputs
[
0
],
frame
);
}
static
int
config_props
(
AVFilterContext
*
ctx
,
AVFilterLink
*
link
,
int
is_out
)
{
av_log
(
ctx
,
AV_LOG_INFO
,
"config %s time_base: %d/%d, frame_rate: %d/%d
\n
"
,
is_out
?
"out"
:
"in"
,
link
->
time_base
.
num
,
link
->
time_base
.
den
,
link
->
frame_rate
.
num
,
link
->
frame_rate
.
den
);
return
0
;
}
static
int
config_props_in
(
AVFilterLink
*
link
)
{
AVFilterContext
*
ctx
=
link
->
dst
;
return
config_props
(
ctx
,
link
,
0
);
}
static
int
config_props_out
(
AVFilterLink
*
link
)
{
AVFilterContext
*
ctx
=
link
->
src
;
return
config_props
(
ctx
,
link
,
1
);
}
static
const
AVFilterPad
avfilter_vf_showinfo_inputs
[]
=
{
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
filter_frame
=
filter_frame
,
.
config_props
=
config_props_in
,
},
{
NULL
}
};
...
...
@@ -174,7 +199,8 @@ static const AVFilterPad avfilter_vf_showinfo_inputs[] = {
static
const
AVFilterPad
avfilter_vf_showinfo_outputs
[]
=
{
{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
config_props
=
config_props_out
,
},
{
NULL
}
};
...
...
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