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
4424fe9c
Commit
4424fe9c
authored
Dec 10, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmapro: use av_float2int()
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
a09bb3ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wmaprodec.c
libavcodec/wmaprodec.c
+3
-2
No files found.
libavcodec/wmaprodec.c
View file @
4424fe9c
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
* subframe in order to reconstruct the output samples.
* subframe in order to reconstruct the output samples.
*/
*/
#include "libavutil/intfloat.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "avcodec.h"
#include "internal.h"
#include "internal.h"
...
@@ -823,8 +824,8 @@ static int decode_coeffs(WMAProDecodeCtx *s, int c)
...
@@ -823,8 +824,8 @@ static int decode_coeffs(WMAProDecodeCtx *s, int c)
v1
=
get_vlc2
(
&
s
->
gb
,
vec1_vlc
.
table
,
VLCBITS
,
VEC1MAXDEPTH
);
v1
=
get_vlc2
(
&
s
->
gb
,
vec1_vlc
.
table
,
VLCBITS
,
VEC1MAXDEPTH
);
if
(
v1
==
HUFF_VEC1_SIZE
-
1
)
if
(
v1
==
HUFF_VEC1_SIZE
-
1
)
v1
+=
ff_wma_get_large_val
(
&
s
->
gb
);
v1
+=
ff_wma_get_large_val
(
&
s
->
gb
);
vals
[
i
]
=
((
av_alias32
){
.
f32
=
v0
}).
u32
;
vals
[
i
]
=
av_float2int
(
v0
)
;
vals
[
i
+
1
]
=
((
av_alias32
){
.
f32
=
v1
}).
u32
;
vals
[
i
+
1
]
=
av_float2int
(
v1
)
;
}
else
{
}
else
{
vals
[
i
]
=
fval_tab
[
symbol_to_vec2
[
idx
]
>>
4
];
vals
[
i
]
=
fval_tab
[
symbol_to_vec2
[
idx
]
>>
4
];
vals
[
i
+
1
]
=
fval_tab
[
symbol_to_vec2
[
idx
]
&
0xF
];
vals
[
i
+
1
]
=
fval_tab
[
symbol_to_vec2
[
idx
]
&
0xF
];
...
...
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