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
0e23b508
Commit
0e23b508
authored
May 01, 2012
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmall: fix reconstructing audio with uncoded channels
parent
c8370e6e
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 @
0e23b508
...
@@ -654,8 +654,6 @@ static void mclms_predict(WmallDecodeCtx *s, int icoef, int *pred)
...
@@ -654,8 +654,6 @@ static void mclms_predict(WmallDecodeCtx *s, int icoef, int *pred)
int
num_channels
=
s
->
num_channels
;
int
num_channels
=
s
->
num_channels
;
for
(
ich
=
0
;
ich
<
num_channels
;
ich
++
)
{
for
(
ich
=
0
;
ich
<
num_channels
;
ich
++
)
{
if
(
!
s
->
is_channel_coded
[
ich
])
continue
;
pred
[
ich
]
=
0
;
pred
[
ich
]
=
0
;
for
(
i
=
0
;
i
<
order
*
num_channels
;
i
++
)
for
(
i
=
0
;
i
<
order
*
num_channels
;
i
++
)
pred
[
ich
]
+=
s
->
mclms_prevvalues
[
i
+
s
->
mclms_recent
]
*
pred
[
ich
]
+=
s
->
mclms_prevvalues
[
i
+
s
->
mclms_recent
]
*
...
@@ -789,7 +787,7 @@ static void revert_inter_ch_decorr(WmallDecodeCtx *s, int tile_size)
...
@@ -789,7 +787,7 @@ static void revert_inter_ch_decorr(WmallDecodeCtx *s, int tile_size)
{
{
if
(
s
->
num_channels
!=
2
)
if
(
s
->
num_channels
!=
2
)
return
;
return
;
else
if
(
s
->
is_channel_coded
[
0
]
&&
s
->
is_channel_coded
[
1
])
{
else
if
(
s
->
is_channel_coded
[
0
]
||
s
->
is_channel_coded
[
1
])
{
int
icoef
;
int
icoef
;
for
(
icoef
=
0
;
icoef
<
tile_size
;
icoef
++
)
{
for
(
icoef
=
0
;
icoef
<
tile_size
;
icoef
++
)
{
s
->
channel_residues
[
0
][
icoef
]
-=
s
->
channel_residues
[
1
][
icoef
]
>>
1
;
s
->
channel_residues
[
0
][
icoef
]
-=
s
->
channel_residues
[
1
][
icoef
]
>>
1
;
...
@@ -955,6 +953,8 @@ static int decode_subframe(WmallDecodeCtx *s)
...
@@ -955,6 +953,8 @@ static int decode_subframe(WmallDecodeCtx *s)
else
else
use_normal_update_speed
(
s
,
i
);
use_normal_update_speed
(
s
,
i
);
revert_cdlms
(
s
,
i
,
0
,
subframe_len
);
revert_cdlms
(
s
,
i
,
0
,
subframe_len
);
}
else
{
memset
(
s
->
channel_residues
[
i
],
0
,
sizeof
(
**
s
->
channel_residues
)
*
subframe_len
);
}
}
}
}
if
(
s
->
do_mclms
)
if
(
s
->
do_mclms
)
...
...
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