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
93e27f86
Commit
93e27f86
authored
Oct 21, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR
parent
8f173ef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cook.c
libavcodec/cook.c
+4
-4
No files found.
libavcodec/cook.c
View file @
93e27f86
...
@@ -1012,14 +1012,14 @@ static int cook_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -1012,14 +1012,14 @@ static int cook_decode_frame(AVCodecContext *avctx, void *data,
static
void
dump_cook_context
(
COOKContext
*
q
)
static
void
dump_cook_context
(
COOKContext
*
q
)
{
{
//int i=0;
//int i=0;
#define PRINT(a, b) av_
log(q->avctx, AV_LOG_ERROR
, " %s = %d\n", a, b);
#define PRINT(a, b) av_
dlog(q->avctx
, " %s = %d\n", a, b);
av_
log
(
q
->
avctx
,
AV_LOG_ERROR
,
"COOKextradata
\n
"
);
av_
dlog
(
q
->
avctx
,
"COOKextradata
\n
"
);
av_
log
(
q
->
avctx
,
AV_LOG_ERROR
,
"cookversion=%x
\n
"
,
q
->
subpacket
[
0
].
cookversion
);
av_
dlog
(
q
->
avctx
,
"cookversion=%x
\n
"
,
q
->
subpacket
[
0
].
cookversion
);
if
(
q
->
subpacket
[
0
].
cookversion
>
STEREO
)
{
if
(
q
->
subpacket
[
0
].
cookversion
>
STEREO
)
{
PRINT
(
"js_subband_start"
,
q
->
subpacket
[
0
].
js_subband_start
);
PRINT
(
"js_subband_start"
,
q
->
subpacket
[
0
].
js_subband_start
);
PRINT
(
"js_vlc_bits"
,
q
->
subpacket
[
0
].
js_vlc_bits
);
PRINT
(
"js_vlc_bits"
,
q
->
subpacket
[
0
].
js_vlc_bits
);
}
}
av_
log
(
q
->
avctx
,
AV_LOG_ERROR
,
"COOKContext
\n
"
);
av_
dlog
(
q
->
avctx
,
"COOKContext
\n
"
);
PRINT
(
"nb_channels"
,
q
->
avctx
->
channels
);
PRINT
(
"nb_channels"
,
q
->
avctx
->
channels
);
PRINT
(
"bit_rate"
,
q
->
avctx
->
bit_rate
);
PRINT
(
"bit_rate"
,
q
->
avctx
->
bit_rate
);
PRINT
(
"sample_rate"
,
q
->
avctx
->
sample_rate
);
PRINT
(
"sample_rate"
,
q
->
avctx
->
sample_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