Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
a7e6328c
Commit
a7e6328c
authored
Jan 23, 2010
by
Daniel Verkamp
Browse files
Export wma_critical_freqs as ff_wma_critical_freqs
Originally committed as revision 21391 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7a086a85
Changes
3
Hide whitespace changes
Inline
Side-by-side
libavcodec/wma.c
View file @
a7e6328c
...
...
@@ -242,7 +242,7 @@ int ff_wma_init(AVCodecContext *avctx, int flags2)
if
(
s
->
version
==
1
)
{
lpos
=
0
;
for
(
i
=
0
;
i
<
25
;
i
++
)
{
a
=
wma_critical_freqs
[
i
];
a
=
ff_
wma_critical_freqs
[
i
];
b
=
s
->
sample_rate
;
pos
=
((
block_len
*
2
*
a
)
+
(
b
>>
1
))
/
b
;
if
(
pos
>
block_len
)
...
...
@@ -277,7 +277,7 @@ int ff_wma_init(AVCodecContext *avctx, int flags2)
j
=
0
;
lpos
=
0
;
for
(
i
=
0
;
i
<
25
;
i
++
)
{
a
=
wma_critical_freqs
[
i
];
a
=
ff_
wma_critical_freqs
[
i
];
b
=
s
->
sample_rate
;
pos
=
((
block_len
*
2
*
a
)
+
(
b
<<
1
))
/
(
4
*
b
);
pos
<<=
2
;
...
...
libavcodec/wma.h
View file @
a7e6328c
...
...
@@ -139,6 +139,7 @@ typedef struct WMACodecContext {
#endif
}
WMACodecContext
;
extern
const
uint16_t
ff_wma_critical_freqs
[
25
];
extern
const
uint16_t
ff_wma_hgain_huffcodes
[
37
];
extern
const
uint8_t
ff_wma_hgain_huffbits
[
37
];
extern
const
float
ff_wma_lsp_codebook
[
NB_LSP_COEFS
][
16
];
...
...
libavcodec/wmadata.h
View file @
a7e6328c
...
...
@@ -30,7 +30,7 @@
#include <stdint.h>
#include "wma.h"
static
const
uint16_t
wma_critical_freqs
[
25
]
=
{
const
uint16_t
ff_
wma_critical_freqs
[
25
]
=
{
100
,
200
,
300
,
400
,
510
,
630
,
770
,
920
,
1080
,
1270
,
1480
,
1720
,
2000
,
2320
,
2700
,
3150
,
3700
,
4400
,
5300
,
6400
,
7700
,
9500
,
12000
,
15500
,
...
...
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