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
c916af99
Commit
c916af99
authored
Jul 12, 2012
by
Robert Krüger
Committed by
Michael Niedermayer
Jul 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add output for frame timestamps
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f7e26cca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ffmpeg.c
ffmpeg.c
+10
-0
No files found.
ffmpeg.c
View file @
c916af99
...
@@ -2500,6 +2500,16 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
...
@@ -2500,6 +2500,16 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
if
(
best_effort_timestamp
!=
AV_NOPTS_VALUE
)
if
(
best_effort_timestamp
!=
AV_NOPTS_VALUE
)
ist
->
next_pts
=
ist
->
pts
=
av_rescale_q
(
decoded_frame
->
pts
=
best_effort_timestamp
,
ist
->
st
->
time_base
,
AV_TIME_BASE_Q
);
ist
->
next_pts
=
ist
->
pts
=
av_rescale_q
(
decoded_frame
->
pts
=
best_effort_timestamp
,
ist
->
st
->
time_base
,
AV_TIME_BASE_Q
);
if
(
debug_ts
)
{
av_log
(
NULL
,
AV_LOG_INFO
,
"decoder -> ist_index:%d type:video "
"frame_pts:%s frame_pts_time:%s best_effort_ts:%d best_effort_ts_time:%s keyframe:%d frame_type:%d
\n
"
,
ist
->
st
->
index
,
av_ts2str
(
decoded_frame
->
pts
),
av_ts2timestr
(
decoded_frame
->
pts
,
&
ist
->
st
->
time_base
),
best_effort_timestamp
,
av_ts2timestr
(
best_effort_timestamp
,
&
ist
->
st
->
time_base
),
decoded_frame
->
key_frame
,
decoded_frame
->
pict_type
);
}
pkt
->
size
=
0
;
pkt
->
size
=
0
;
pre_process_video_frame
(
ist
,
(
AVPicture
*
)
decoded_frame
,
&
buffer_to_free
);
pre_process_video_frame
(
ist
,
(
AVPicture
*
)
decoded_frame
,
&
buffer_to_free
);
...
...
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