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
a1278796
Commit
a1278796
authored
Feb 05, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/segment: extend PTS debugging log with -reset_timestamps
parent
212bb649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
segment.c
libavformat/segment.c
+9
-5
No files found.
libavformat/segment.c
View file @
a1278796
...
@@ -679,9 +679,12 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -679,9 +679,12 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
}
}
if
(
seg
->
reset_timestamps
)
{
if
(
seg
->
reset_timestamps
)
{
av_log
(
s
,
AV_LOG_DEBUG
,
"start_pts:%s pts:%s start_dts:%s dts:%s"
,
av_log
(
s
,
AV_LOG_DEBUG
,
"stream:%d start_pts_time:%s pts:%s pts_time:%s start_dts_time:%s dts:%s dts_time:%s"
,
av_ts2timestr
(
seg
->
cur_entry
.
start_pts
,
&
AV_TIME_BASE_Q
),
av_ts2timestr
(
pkt
->
pts
,
&
st
->
time_base
),
pkt
->
stream_index
,
av_ts2timestr
(
seg
->
cur_entry
.
start_dts
,
&
AV_TIME_BASE_Q
),
av_ts2timestr
(
pkt
->
dts
,
&
st
->
time_base
));
av_ts2timestr
(
seg
->
cur_entry
.
start_pts
,
&
AV_TIME_BASE_Q
),
av_ts2str
(
pkt
->
pts
),
av_ts2timestr
(
pkt
->
pts
,
&
st
->
time_base
),
av_ts2timestr
(
seg
->
cur_entry
.
start_dts
,
&
AV_TIME_BASE_Q
),
av_ts2str
(
pkt
->
dts
),
av_ts2timestr
(
pkt
->
dts
,
&
st
->
time_base
));
/* compute new timestamps */
/* compute new timestamps */
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
)
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
)
...
@@ -689,8 +692,9 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -689,8 +692,9 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
if
(
pkt
->
dts
!=
AV_NOPTS_VALUE
)
if
(
pkt
->
dts
!=
AV_NOPTS_VALUE
)
pkt
->
dts
-=
av_rescale_q
(
seg
->
cur_entry
.
start_dts
,
AV_TIME_BASE_Q
,
st
->
time_base
);
pkt
->
dts
-=
av_rescale_q
(
seg
->
cur_entry
.
start_dts
,
AV_TIME_BASE_Q
,
st
->
time_base
);
av_log
(
s
,
AV_LOG_DEBUG
,
" -> pts:%s dts:%s
\n
"
,
av_log
(
s
,
AV_LOG_DEBUG
,
" -> pts:%s pts_time:%s dts:%s dts_time:%s
\n
"
,
av_ts2timestr
(
pkt
->
pts
,
&
st
->
time_base
),
av_ts2timestr
(
pkt
->
dts
,
&
st
->
time_base
));
av_ts2str
(
pkt
->
pts
),
av_ts2timestr
(
pkt
->
pts
,
&
st
->
time_base
),
av_ts2str
(
pkt
->
dts
),
av_ts2timestr
(
pkt
->
dts
,
&
st
->
time_base
));
}
}
ret
=
ff_write_chained
(
oc
,
pkt
->
stream_index
,
pkt
,
s
);
ret
=
ff_write_chained
(
oc
,
pkt
->
stream_index
,
pkt
,
s
);
...
...
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