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
52fa37f1
Commit
52fa37f1
authored
Jan 08, 2006
by
Benjamin Larsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_vlc -> get_vlc2 transition.
Originally committed as revision 4827 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
47ad9aba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
wmadec.c
libavcodec/wmadec.c
+5
-3
No files found.
libavcodec/wmadec.c
View file @
52fa37f1
...
@@ -56,6 +56,8 @@
...
@@ -56,6 +56,8 @@
#define LSP_POW_BITS 7
#define LSP_POW_BITS 7
#define VLCBITS 9
typedef
struct
WMADecodeContext
{
typedef
struct
WMADecodeContext
{
GetBitContext
gb
;
GetBitContext
gb
;
int
sample_rate
;
int
sample_rate
;
...
@@ -679,7 +681,7 @@ static int decode_exp_vlc(WMADecodeContext *s, int ch)
...
@@ -679,7 +681,7 @@ static int decode_exp_vlc(WMADecodeContext *s, int ch)
}
}
last_exp
=
36
;
last_exp
=
36
;
while
(
q
<
q_end
)
{
while
(
q
<
q_end
)
{
code
=
get_vlc
(
&
s
->
gb
,
&
s
->
exp_vlc
);
code
=
get_vlc
2
(
&
s
->
gb
,
s
->
exp_vlc
.
table
,
VLCBITS
,
2
);
if
(
code
<
0
)
if
(
code
<
0
)
return
-
1
;
return
-
1
;
/* NOTE: this offset is the same as MPEG4 AAC ! */
/* NOTE: this offset is the same as MPEG4 AAC ! */
...
@@ -820,7 +822,7 @@ static int wma_decode_block(WMADecodeContext *s)
...
@@ -820,7 +822,7 @@ static int wma_decode_block(WMADecodeContext *s)
if
(
val
==
(
int
)
0x80000000
)
{
if
(
val
==
(
int
)
0x80000000
)
{
val
=
get_bits
(
&
s
->
gb
,
7
)
-
19
;
val
=
get_bits
(
&
s
->
gb
,
7
)
-
19
;
}
else
{
}
else
{
code
=
get_vlc
(
&
s
->
gb
,
&
s
->
hgain_vlc
);
code
=
get_vlc
2
(
&
s
->
gb
,
s
->
hgain_vlc
.
table
,
VLCBITS
,
2
);
if
(
code
<
0
)
if
(
code
<
0
)
return
-
1
;
return
-
1
;
val
+=
code
-
18
;
val
+=
code
-
18
;
...
@@ -877,7 +879,7 @@ static int wma_decode_block(WMADecodeContext *s)
...
@@ -877,7 +879,7 @@ static int wma_decode_block(WMADecodeContext *s)
eptr
=
ptr
+
nb_coefs
[
ch
];
eptr
=
ptr
+
nb_coefs
[
ch
];
memset
(
ptr
,
0
,
s
->
block_len
*
sizeof
(
int16_t
));
memset
(
ptr
,
0
,
s
->
block_len
*
sizeof
(
int16_t
));
for
(;;)
{
for
(;;)
{
code
=
get_vlc
(
&
s
->
gb
,
coef_vlc
);
code
=
get_vlc
2
(
&
s
->
gb
,
coef_vlc
->
table
,
VLCBITS
,
3
);
if
(
code
<
0
)
if
(
code
<
0
)
return
-
1
;
return
-
1
;
if
(
code
==
1
)
{
if
(
code
==
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