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
d02b3e9b
Commit
d02b3e9b
authored
Apr 20, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/utils: Provide context for av_log() where one is available
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8a91ee78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.c
libavformat/utils.c
+3
-3
No files found.
libavformat/utils.c
View file @
d02b3e9b
...
@@ -1085,7 +1085,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
...
@@ -1085,7 +1085,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
pkt
->
pts
>
pkt
->
dts
)
pkt
->
pts
>
pkt
->
dts
)
presentation_delayed
=
1
;
presentation_delayed
=
1
;
av_log
(
NULL
,
AV_LOG_TRACE
,
av_log
(
s
,
AV_LOG_TRACE
,
"IN delayed:%d pts:%s, dts:%s cur_dts:%s st:%d pc:%p duration:%d delay:%d onein_oneout:%d
\n
"
,
"IN delayed:%d pts:%s, dts:%s cur_dts:%s st:%d pc:%p duration:%d delay:%d onein_oneout:%d
\n
"
,
presentation_delayed
,
av_ts2str
(
pkt
->
pts
),
av_ts2str
(
pkt
->
dts
),
av_ts2str
(
st
->
cur_dts
),
presentation_delayed
,
av_ts2str
(
pkt
->
pts
),
av_ts2str
(
pkt
->
dts
),
av_ts2str
(
st
->
cur_dts
),
pkt
->
stream_index
,
pc
,
pkt
->
duration
,
delay
,
onein_oneout
);
pkt
->
stream_index
,
pc
,
pkt
->
duration
,
delay
,
onein_oneout
);
...
@@ -1151,7 +1151,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
...
@@ -1151,7 +1151,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
if
(
pkt
->
dts
>
st
->
cur_dts
)
if
(
pkt
->
dts
>
st
->
cur_dts
)
st
->
cur_dts
=
pkt
->
dts
;
st
->
cur_dts
=
pkt
->
dts
;
av_log
(
NULL
,
AV_LOG_TRACE
,
"OUTdelayed:%d/%d pts:%s, dts:%s cur_dts:%s
\n
"
,
av_log
(
s
,
AV_LOG_TRACE
,
"OUTdelayed:%d/%d pts:%s, dts:%s cur_dts:%s
\n
"
,
presentation_delayed
,
delay
,
av_ts2str
(
pkt
->
pts
),
av_ts2str
(
pkt
->
dts
),
av_ts2str
(
st
->
cur_dts
));
presentation_delayed
,
delay
,
av_ts2str
(
pkt
->
pts
),
av_ts2str
(
pkt
->
dts
),
av_ts2str
(
st
->
cur_dts
));
/* update flags */
/* update flags */
...
@@ -2986,7 +2986,7 @@ void ff_rfps_calculate(AVFormatContext *ic)
...
@@ -2986,7 +2986,7 @@ void ff_rfps_calculate(AVFormatContext *ic)
num
=
get_std_framerate
(
j
);
num
=
get_std_framerate
(
j
);
}
}
if
(
error
<
0
.
02
)
if
(
error
<
0
.
02
)
av_log
(
NULL
,
AV_LOG_DEBUG
,
"rfps: %f %f
\n
"
,
get_std_framerate
(
j
)
/
12
.
0
/
1001
,
error
);
av_log
(
ic
,
AV_LOG_DEBUG
,
"rfps: %f %f
\n
"
,
get_std_framerate
(
j
)
/
12
.
0
/
1001
,
error
);
}
}
}
}
// do not increase frame rate by more than 1 % in order to match a standard rate.
// do not increase frame rate by more than 1 % in order to match a standard rate.
...
...
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