Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
b979e4a2
Commit
b979e4a2
authored
15 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
whitespace cosmetics
Originally committed as revision 19703 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6aa33347
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/wmaprodec.c
+7
-7
7 additions, 7 deletions
libavcodec/wmaprodec.c
with
7 additions
and
7 deletions
libavcodec/wmaprodec.c
+
7
−
7
View file @
b979e4a2
...
...
@@ -96,7 +96,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
WMA3DecodeContext
*
s
=
avctx
->
priv_data
;
int
i
;
for
(
i
=
0
;
i
<
WMAPRO_BLOCK_SIZES
;
i
++
)
for
(
i
=
0
;
i
<
WMAPRO_BLOCK_SIZES
;
i
++
)
ff_mdct_end
(
&
s
->
mdct_ctx
[
i
]);
return
0
;
...
...
@@ -113,11 +113,11 @@ static void decode_decorrelation_matrix(WMA3DecodeContext *s,
int
i
;
int
offset
=
0
;
int8_t
rotation_offset
[
WMAPRO_MAX_CHANNELS
*
WMAPRO_MAX_CHANNELS
];
memset
(
chgroup
->
decorrelation_matrix
,
0
,
memset
(
chgroup
->
decorrelation_matrix
,
0
,
sizeof
(
float
)
*
s
->
num_channels
*
s
->
num_channels
);
for
(
i
=
0
;
i
<
chgroup
->
num_channels
*
(
chgroup
->
num_channels
-
1
)
>>
1
;
i
++
)
rotation_offset
[
i
]
=
get_bits
(
&
s
->
gb
,
6
);
rotation_offset
[
i
]
=
get_bits
(
&
s
->
gb
,
6
);
for
(
i
=
0
;
i
<
chgroup
->
num_channels
;
i
++
)
chgroup
->
decorrelation_matrix
[
chgroup
->
num_channels
*
i
+
i
]
=
...
...
@@ -127,7 +127,7 @@ static void decode_decorrelation_matrix(WMA3DecodeContext *s,
int
x
;
for
(
x
=
0
;
x
<
i
;
x
++
)
{
int
y
;
for
(
y
=
0
;
y
<
i
+
1
;
y
++
)
{
for
(
y
=
0
;
y
<
i
+
1
;
y
++
)
{
float
v1
=
chgroup
->
decorrelation_matrix
[
x
*
chgroup
->
num_channels
+
y
];
float
v2
=
chgroup
->
decorrelation_matrix
[
i
*
chgroup
->
num_channels
+
y
];
int
n
=
rotation_offset
[
offset
+
x
];
...
...
@@ -172,7 +172,7 @@ static void inverse_channel_transform(WMA3DecodeContext *s)
while
(
tb
<
tb_end
)
{
const
float
*
ch0_end
=
s
->
channel
[
0
].
coeffs
+
FFMIN
(
*
sfb_offsets
,
s
->
subframe_len
);
FFMIN
(
*
sfb_offsets
,
s
->
subframe_len
);
if
(
*
tb
++
==
1
)
{
while
(
ch0
<
ch0_end
)
{
const
float
v1
=
*
ch0
;
...
...
@@ -197,7 +197,7 @@ static void inverse_channel_transform(WMA3DecodeContext *s)
int16_t
*
sfb
;
/** multichannel decorrelation */
for
(
sfb
=
s
->
cur_sfb_offsets
;
for
(
sfb
=
s
->
cur_sfb_offsets
;
sfb
<
s
->
cur_sfb_offsets
+
s
->
num_bands
;
sfb
++
)
{
if
(
*
tb
++
==
1
)
{
int
y
;
...
...
@@ -208,7 +208,7 @@ static void inverse_channel_transform(WMA3DecodeContext *s)
float
*
data_ptr
=
data
;
float
**
ch
;
for
(
ch
=
ch_data
;
ch
<
ch_end
;
ch
++
)
for
(
ch
=
ch_data
;
ch
<
ch_end
;
ch
++
)
*
data_ptr
++
=
(
*
ch
)[
y
];
for
(
ch
=
ch_data
;
ch
<
ch_end
;
ch
++
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment