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
97d9cff2
Commit
97d9cff2
authored
Nov 11, 2019
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/libdav1d: export bitstream timing info when available
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
0b874252
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
libdav1d.c
libavcodec/libdav1d.c
+7
-0
No files found.
libavcodec/libdav1d.c
View file @
97d9cff2
...
...
@@ -287,6 +287,13 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
else
frame
->
reordered_opaque
=
AV_NOPTS_VALUE
;
if
(
p
->
seq_hdr
->
num_units_in_tick
&&
p
->
seq_hdr
->
time_scale
)
{
av_reduce
(
&
c
->
framerate
.
den
,
&
c
->
framerate
.
num
,
p
->
seq_hdr
->
num_units_in_tick
,
p
->
seq_hdr
->
time_scale
,
INT_MAX
);
if
(
p
->
seq_hdr
->
equal_picture_interval
)
c
->
ticks_per_frame
=
p
->
seq_hdr
->
num_ticks_per_picture
;
}
// match timestamps and packet size
frame
->
pts
=
frame
->
best_effort_timestamp
=
p
->
m
.
timestamp
;
#if FF_API_PKT_PTS
...
...
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