Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
6b8adbfe
Commit
6b8adbfe
authored
Jan 17, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avf_a3dscope,avf_showcwt: set video frame duration
parent
2cee6229
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
avf_a3dscope.c
libavfilter/avf_a3dscope.c
+1
-0
avf_showcwt.c
libavfilter/avf_showcwt.c
+1
-0
No files found.
libavfilter/avf_a3dscope.c
View file @
6b8adbfe
...
...
@@ -243,6 +243,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
for
(
int
y
=
0
;
y
<
outlink
->
h
;
y
++
)
memset
(
out
->
data
[
0
]
+
y
*
out
->
linesize
[
0
],
0
,
outlink
->
w
*
4
);
out
->
pts
=
av_rescale_q
(
in
->
pts
,
inlink
->
time_base
,
outlink
->
time_base
);
out
->
duration
=
1
;
projection_matrix
(
s
->
fov
,
half_width
/
half_height
,
0
.
1
f
,
1000000
.
f
,
s
->
projection_matrix
);
view_matrix
(
s
->
eye
,
s
->
zoom
,
s
->
roll
,
s
->
pitch
,
s
->
yaw
,
s
->
view_matrix
);
...
...
libavfilter/avf_showcwt.c
View file @
6b8adbfe
...
...
@@ -869,6 +869,7 @@ static int output_frame(AVFilterContext *ctx)
int64_t
pts_offset
=
s
->
new_frame
?
0LL
:
av_rescale
(
s
->
ihop_index
,
s
->
hop_size
,
s
->
ihop_size
);
s
->
outpicref
->
pts
=
av_rescale_q
(
s
->
in_pts
+
pts_offset
,
inlink
->
time_base
,
outlink
->
time_base
);
s
->
outpicref
->
duration
=
1
;
}
s
->
ihop_index
++
;
...
...
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