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
e8d5c07b
Commit
e8d5c07b
authored
Feb 26, 2009
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-indent after last commit.
Originally committed as revision 17600 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
21e8c46c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
aac.c
libavcodec/aac.c
+24
-24
No files found.
libavcodec/aac.c
View file @
e8d5c07b
...
...
@@ -805,31 +805,31 @@ static int decode_spectrum_and_dequant(AACContext * ac, float coef[1024], GetBit
if
(
vq_ptr
[
2
])
coef
[
coef_tmp_idx
+
2
]
=
sign_lookup
[
get_bits1
(
gb
)];
if
(
vq_ptr
[
3
])
coef
[
coef_tmp_idx
+
3
]
=
sign_lookup
[
get_bits1
(
gb
)];
}
if
(
cur_band_type
==
ESC_BT
)
{
for
(
j
=
0
;
j
<
2
;
j
++
)
{
if
(
vq_ptr
[
j
]
==
64
.
0
f
)
{
int
n
=
4
;
/* The total length of escape_sequence must be < 22 bits according
to the specification (i.e. max is 11111111110xxxxxxxxxx). */
while
(
get_bits1
(
gb
)
&&
n
<
15
)
n
++
;
if
(
n
==
15
)
{
av_log
(
ac
->
avccontext
,
AV_LOG_ERROR
,
"error in spectral data, ESC overflow
\n
"
);
return
-
1
;
}
n
=
(
1
<<
n
)
+
get_bits
(
gb
,
n
);
coef
[
coef_tmp_idx
+
j
]
*=
cbrtf
(
n
)
*
n
;
}
else
coef
[
coef_tmp_idx
+
j
]
*=
vq_ptr
[
j
];
}
}
else
{
coef
[
coef_tmp_idx
]
*=
vq_ptr
[
0
];
coef
[
coef_tmp_idx
+
1
]
*=
vq_ptr
[
1
];
if
(
dim
==
4
)
{
coef
[
coef_tmp_idx
+
2
]
*=
vq_ptr
[
2
];
coef
[
coef_tmp_idx
+
3
]
*=
vq_ptr
[
3
];
if
(
cur_band_type
==
ESC_BT
)
{
for
(
j
=
0
;
j
<
2
;
j
++
)
{
if
(
vq_ptr
[
j
]
==
64
.
0
f
)
{
int
n
=
4
;
/* The total length of escape_sequence must be < 22 bits according
to the specification (i.e. max is 11111111110xxxxxxxxxx). */
while
(
get_bits1
(
gb
)
&&
n
<
15
)
n
++
;
if
(
n
==
15
)
{
av_log
(
ac
->
avccontext
,
AV_LOG_ERROR
,
"error in spectral data, ESC overflow
\n
"
);
return
-
1
;
}
n
=
(
1
<<
n
)
+
get_bits
(
gb
,
n
);
coef
[
coef_tmp_idx
+
j
]
*=
cbrtf
(
n
)
*
n
;
}
else
coef
[
coef_tmp_idx
+
j
]
*=
vq_ptr
[
j
];
}
}
else
{
coef
[
coef_tmp_idx
]
*=
vq_ptr
[
0
];
coef
[
coef_tmp_idx
+
1
]
*=
vq_ptr
[
1
];
if
(
dim
==
4
)
{
coef
[
coef_tmp_idx
+
2
]
*=
vq_ptr
[
2
];
coef
[
coef_tmp_idx
+
3
]
*=
vq_ptr
[
3
];
}
}
}
}
else
{
coef
[
coef_tmp_idx
]
=
vq_ptr
[
0
];
coef
[
coef_tmp_idx
+
1
]
=
vq_ptr
[
1
];
...
...
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