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
d4cf3779
Commit
d4cf3779
authored
Apr 20, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mux: Place timestamp related trace av_logs under FF_FDEBUG_TS
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e48a0a6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
mux.c
libavformat/mux.c
+8
-3
No files found.
libavformat/mux.c
View file @
d4cf3779
...
@@ -442,7 +442,8 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
...
@@ -442,7 +442,8 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
int
num
,
den
,
i
;
int
num
,
den
,
i
;
int
frame_size
;
int
frame_size
;
av_log
(
s
,
AV_LOG_TRACE
,
"compute_pkt_fields2: pts:%s dts:%s cur_dts:%s b:%d size:%d st:%d
\n
"
,
if
(
s
->
debug
&
FF_FDEBUG_TS
)
av_log
(
s
,
AV_LOG_TRACE
,
"compute_pkt_fields2: pts:%s dts:%s cur_dts:%s b:%d size:%d st:%d
\n
"
,
av_ts2str
(
pkt
->
pts
),
av_ts2str
(
pkt
->
dts
),
av_ts2str
(
st
->
cur_dts
),
delay
,
pkt
->
size
,
pkt
->
stream_index
);
av_ts2str
(
pkt
->
pts
),
av_ts2str
(
pkt
->
dts
),
av_ts2str
(
st
->
cur_dts
),
delay
,
pkt
->
size
,
pkt
->
stream_index
);
if
(
pkt
->
duration
<
0
&&
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
)
{
if
(
pkt
->
duration
<
0
&&
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
)
{
...
@@ -502,8 +503,10 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
...
@@ -502,8 +503,10 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
}
}
av_log
(
s
,
AV_LOG_TRACE
,
"av_write_frame: pts2:%s dts2:%s
\n
"
,
if
(
s
->
debug
&
FF_FDEBUG_TS
)
av_log
(
s
,
AV_LOG_TRACE
,
"av_write_frame: pts2:%s dts2:%s
\n
"
,
av_ts2str
(
pkt
->
pts
),
av_ts2str
(
pkt
->
dts
));
av_ts2str
(
pkt
->
pts
),
av_ts2str
(
pkt
->
dts
));
st
->
cur_dts
=
pkt
->
dts
;
st
->
cur_dts
=
pkt
->
dts
;
st
->
pts
.
val
=
pkt
->
dts
;
st
->
pts
.
val
=
pkt
->
dts
;
...
@@ -876,8 +879,10 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
...
@@ -876,8 +879,10 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
if
(
pkt
)
{
if
(
pkt
)
{
AVStream
*
st
=
s
->
streams
[
pkt
->
stream_index
];
AVStream
*
st
=
s
->
streams
[
pkt
->
stream_index
];
av_log
(
s
,
AV_LOG_TRACE
,
"av_interleaved_write_frame size:%d dts:%s pts:%s
\n
"
,
if
(
s
->
debug
&
FF_FDEBUG_TS
)
av_log
(
s
,
AV_LOG_TRACE
,
"av_interleaved_write_frame size:%d dts:%s pts:%s
\n
"
,
pkt
->
size
,
av_ts2str
(
pkt
->
dts
),
av_ts2str
(
pkt
->
pts
));
pkt
->
size
,
av_ts2str
(
pkt
->
dts
),
av_ts2str
(
pkt
->
pts
));
if
((
ret
=
compute_pkt_fields2
(
s
,
st
,
pkt
))
<
0
&&
!
(
s
->
oformat
->
flags
&
AVFMT_NOTIMESTAMPS
))
if
((
ret
=
compute_pkt_fields2
(
s
,
st
,
pkt
))
<
0
&&
!
(
s
->
oformat
->
flags
&
AVFMT_NOTIMESTAMPS
))
goto
fail
;
goto
fail
;
...
...
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