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
7727be79
Commit
7727be79
authored
Mar 18, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_fps: move initializing pts from config_props to init.
It should not be reinitialized if the link properties change.
parent
d371c3c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vf_fps.c
libavfilter/vf_fps.c
+2
-1
No files found.
libavfilter/vf_fps.c
View file @
7727be79
...
@@ -77,6 +77,8 @@ static av_cold int init(AVFilterContext *ctx)
...
@@ -77,6 +77,8 @@ static av_cold int init(AVFilterContext *ctx)
if
(
!
(
s
->
fifo
=
av_fifo_alloc
(
2
*
sizeof
(
AVFrame
*
))))
if
(
!
(
s
->
fifo
=
av_fifo_alloc
(
2
*
sizeof
(
AVFrame
*
))))
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
s
->
pts
=
AV_NOPTS_VALUE
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"fps=%d/%d
\n
"
,
s
->
framerate
.
num
,
s
->
framerate
.
den
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"fps=%d/%d
\n
"
,
s
->
framerate
.
num
,
s
->
framerate
.
den
);
return
0
;
return
0
;
}
}
...
@@ -110,7 +112,6 @@ static int config_props(AVFilterLink* link)
...
@@ -110,7 +112,6 @@ static int config_props(AVFilterLink* link)
link
->
time_base
=
(
AVRational
){
s
->
framerate
.
den
,
s
->
framerate
.
num
};
link
->
time_base
=
(
AVRational
){
s
->
framerate
.
den
,
s
->
framerate
.
num
};
link
->
w
=
link
->
src
->
inputs
[
0
]
->
w
;
link
->
w
=
link
->
src
->
inputs
[
0
]
->
w
;
link
->
h
=
link
->
src
->
inputs
[
0
]
->
h
;
link
->
h
=
link
->
src
->
inputs
[
0
]
->
h
;
s
->
pts
=
AV_NOPTS_VALUE
;
return
0
;
return
0
;
}
}
...
...
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