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
98be975d
Commit
98be975d
authored
Aug 06, 2001
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
types fix
Originally committed as revision 36 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4e66ab3b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
ac3enc.c
libavcodec/ac3enc.c
+1
-1
mpeg12data.h
libavcodec/mpeg12data.h
+2
-2
msmpeg4.c
libavcodec/msmpeg4.c
+4
-4
No files found.
libavcodec/ac3enc.c
View file @
98be975d
...
...
@@ -599,7 +599,7 @@ static int bit_alloc(AC3EncodeContext *s,
s
->
mant2_cnt
=
0
;
s
->
mant4_cnt
=
0
;
for
(
ch
=
0
;
ch
<
s
->
nb_channels
;
ch
++
)
{
parametric_bit_allocation
(
s
,
bap
[
i
][
ch
],
encoded_exp
[
i
][
ch
],
parametric_bit_allocation
(
s
,
bap
[
i
][
ch
],
(
INT8
*
)
encoded_exp
[
i
][
ch
],
0
,
s
->
nb_coefs
[
ch
],
(((
csnroffst
-
15
)
<<
4
)
+
fsnroffst
)
<<
2
,
...
...
libavcodec/mpeg12data.h
View file @
98be975d
...
...
@@ -127,7 +127,7 @@ static const UINT16 mpeg2_vlc[113][2] = {
{
0x06
,
4
},
/* EOB */
};
static
const
U
INT8
mpeg1_level
[
111
]
=
{
static
const
INT8
mpeg1_level
[
111
]
=
{
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
,
...
...
@@ -144,7 +144,7 @@ static const UINT8 mpeg1_level[111] = {
1
,
1
,
1
,
1
,
1
,
1
,
1
,
};
static
const
U
INT8
mpeg1_run
[
111
]
=
{
static
const
INT8
mpeg1_run
[
111
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
...
...
libavcodec/msmpeg4.c
View file @
98be975d
...
...
@@ -361,10 +361,10 @@ void msmpeg4_dc_scale(MpegEncContext * s)
/* dir = 0: left, dir = 1: top prediction */
static
int
msmpeg4_pred_dc
(
MpegEncContext
*
s
,
int
n
,
U
INT16
**
dc_val_ptr
,
int
*
dir_ptr
)
INT16
**
dc_val_ptr
,
int
*
dir_ptr
)
{
int
a
,
b
,
c
,
x
,
y
,
wrap
,
pred
,
scale
;
U
INT16
*
dc_val
;
INT16
*
dc_val
;
/* find prediction */
if
(
n
<
4
)
{
...
...
@@ -417,7 +417,7 @@ static void msmpeg4_encode_dc(MpegEncContext * s, int level, int n, int *dir_ptr
{
int
sign
,
code
;
int
pred
;
U
INT16
*
dc_val
;
INT16
*
dc_val
;
pred
=
msmpeg4_pred_dc
(
s
,
n
,
&
dc_val
,
dir_ptr
);
...
...
@@ -863,7 +863,7 @@ static int msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
static
int
msmpeg4_decode_dc
(
MpegEncContext
*
s
,
int
n
,
int
*
dir_ptr
)
{
int
level
,
pred
;
U
INT16
*
dc_val
;
INT16
*
dc_val
;
if
(
n
<
4
)
{
level
=
get_vlc
(
&
s
->
gb
,
&
dc_lum_vlc
[
s
->
dc_table_index
]);
...
...
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