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
6dd19c97
Commit
6dd19c97
authored
Nov 29, 2011
by
Mashiat Sarker Shakkhar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a size argument to dump_int_buffer()
parent
81a3c671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+3
-3
No files found.
libavcodec/wmalosslessdec.c
View file @
6dd19c97
...
...
@@ -310,14 +310,14 @@ static void av_cold dump_context(WmallDecodeCtx *s)
PRINT
(
"num channels"
,
s
->
num_channels
);
}
static
int
dump_int_buffer
(
int
*
buffer
,
int
length
,
int
delimiter
)
static
void
dump_int_buffer
(
uint8_t
*
buffer
,
int
size
,
int
length
,
int
delimiter
)
{
int
i
;
for
(
i
=
0
;
i
<
length
;
i
++
)
{
if
(
!
(
i
%
delimiter
))
av_log
(
0
,
0
,
"
\n
[%d] "
,
i
);
av_log
(
0
,
0
,
"%d, "
,
buffer
[
i
]
);
av_log
(
0
,
0
,
"%d, "
,
*
(
int16_t
*
)(
buffer
+
i
*
size
)
);
}
av_log
(
0
,
0
,
"
\n
"
);
...
...
@@ -719,7 +719,7 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size)
residue
=
residue
>>
1
;
s
->
channel_residues
[
ch
][
i
]
=
residue
;
}
dump_int_buffer
(
s
->
channel_residues
[
ch
],
tile_size
,
16
);
dump_int_buffer
(
s
->
channel_residues
[
ch
],
4
,
tile_size
,
16
);
return
0
;
...
...
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