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
626964a4
Commit
626964a4
authored
Mar 07, 2012
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmall: fix build with -DDEBUG enabled.
parent
8febcb9f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+8
-9
No files found.
libavcodec/wmalosslessdec.c
View file @
626964a4
...
...
@@ -196,8 +196,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
/* dump the extradata */
for
(
i
=
0
;
i
<
avctx
->
extradata_size
;
i
++
)
av_dlog
(
avctx
,
AV_LOG_DEBUG
,
"[%x] "
,
avctx
->
extradata
[
i
]);
av_dlog
(
avctx
,
AV_LOG_DEBUG
,
"
\n
"
);
av_dlog
(
avctx
,
"[%x] "
,
avctx
->
extradata
[
i
]);
av_dlog
(
avctx
,
"
\n
"
);
}
else
{
av_log_ask_for_sample
(
avctx
,
"Unsupported extradata size
\n
"
);
...
...
@@ -407,7 +407,6 @@ static void decode_mclms(WmallDecodeCtx *s)
if
(
get_bits1
(
&
s
->
gb
))
{
int
i
,
send_coef_bits
;
int
cbits
=
av_log2
(
s
->
mclms_scaling
+
1
);
assert
(
cbits
==
my_log2
(
s
->
mclms_scaling
+
1
));
if
(
1
<<
cbits
<
s
->
mclms_scaling
+
1
)
cbits
++
;
...
...
@@ -866,7 +865,7 @@ static int decode_subframe(WmallDecodeCtx *s)
s
->
do_arith_coding
=
get_bits1
(
&
s
->
gb
);
if
(
s
->
do_arith_coding
)
{
av_dlog
(
s
->
avctx
,
AV_LOG_DEBUG
,
"do_arith_coding == 1"
);
av_dlog
(
s
->
avctx
,
"do_arith_coding == 1"
);
abort
();
}
s
->
do_ac_filter
=
get_bits1
(
&
s
->
gb
);
...
...
@@ -915,7 +914,7 @@ static int decode_subframe(WmallDecodeCtx *s)
if
(
rawpcm_tile
)
{
int
bits
=
s
->
bits_per_sample
-
padding_zeroes
;
av_dlog
(
s
->
avctx
,
AV_LOG_DEBUG
,
"RAWPCM %d bits per sample. "
av_dlog
(
s
->
avctx
,
"RAWPCM %d bits per sample. "
"total %d bits, remain=%d
\n
"
,
bits
,
bits
*
s
->
num_channels
*
subframe_len
,
get_bits_count
(
&
s
->
gb
));
for
(
i
=
0
;
i
<
s
->
num_channels
;
i
++
)
...
...
@@ -1010,13 +1009,13 @@ static int decode_frame(WmallDecodeCtx *s)
/* usually true for the first frame */
if
(
get_bits1
(
gb
))
{
skip
=
get_bits
(
gb
,
av_log2
(
s
->
samples_per_frame
*
2
));
av_dlog
(
s
->
avctx
,
AV_LOG_DEBUG
,
"start skip: %i
\n
"
,
skip
);
av_dlog
(
s
->
avctx
,
"start skip: %i
\n
"
,
skip
);
}
/* sometimes true for the last frame */
if
(
get_bits1
(
gb
))
{
skip
=
get_bits
(
gb
,
av_log2
(
s
->
samples_per_frame
*
2
));
av_dlog
(
s
->
avctx
,
AV_LOG_DEBUG
,
"end skip: %i
\n
"
,
skip
);
av_dlog
(
s
->
avctx
,
"end skip: %i
\n
"
,
skip
);
}
}
...
...
@@ -1036,7 +1035,7 @@ static int decode_frame(WmallDecodeCtx *s)
}
}
av_dlog
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Frame done
\n
"
);
av_dlog
(
s
->
avctx
,
"Frame done
\n
"
);
if
(
s
->
skip_frame
)
s
->
skip_frame
=
0
;
...
...
@@ -1185,7 +1184,7 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
if
(
!
s
->
packet_loss
)
decode_frame
(
s
);
}
else
if
(
s
->
num_saved_bits
-
s
->
frame_offset
)
{
av_dlog
(
avctx
,
AV_LOG_DEBUG
,
"ignoring %x previously saved bits
\n
"
,
av_dlog
(
avctx
,
"ignoring %x previously saved bits
\n
"
,
s
->
num_saved_bits
-
s
->
frame_offset
);
}
...
...
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