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
90bb2c78
Commit
90bb2c78
authored
May 14, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Allow seting and cycling through debug modes.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
34e83808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
ffmpeg.c
ffmpeg.c
+22
-0
No files found.
ffmpeg.c
View file @
90bb2c78
...
...
@@ -2603,11 +2603,33 @@ static int transcode(AVFormatContext **output_files,
do_pkt_dump
=
1
;
av_log_set_level
(
AV_LOG_DEBUG
);
}
if
(
key
==
'd'
||
key
==
'D'
){
int
debug
=
0
;
if
(
key
==
'D'
)
{
ist
=
ist_table
[
0
];
debug
=
ist
->
st
->
codec
->
debug
<<
1
;
if
(
!
debug
)
debug
=
1
;
while
(
debug
&
(
FF_DEBUG_DCT_COEFF
|
FF_DEBUG_VIS_QP
|
FF_DEBUG_VIS_MB_TYPE
))
//unsupported, would just crash
debug
+=
debug
;
}
else
scanf
(
"%d"
,
&
debug
);
for
(
i
=
0
;
i
<
nb_istreams
;
i
++
)
{
ist
=
ist_table
[
i
];
ist
->
st
->
codec
->
debug
=
debug
;
}
for
(
i
=
0
;
i
<
nb_ostreams
;
i
++
)
{
ost
=
ost_table
[
i
];
ost
->
st
->
codec
->
debug
=
debug
;
}
if
(
debug
)
av_log_set_level
(
AV_LOG_DEBUG
);
fprintf
(
stderr
,
"debug=%d
\n
"
,
debug
);
}
if
(
key
==
'?'
){
fprintf
(
stderr
,
"key function
\n
"
"? show this help
\n
"
"+ increase verbosity
\n
"
"- decrease verbosity
\n
"
"D cycle through available debug modes
\n
"
"h dump packets/hex press to cycle through the 3 states
\n
"
"q quit
\n
"
"s Show QP histogram
\n
"
...
...
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