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
4d87cd28
Commit
4d87cd28
authored
Aug 24, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/prosumer: fix some minor issues
parent
aba720dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
prosumer.c
libavcodec/prosumer.c
+9
-9
No files found.
libavcodec/prosumer.c
View file @
4d87cd28
...
...
@@ -45,7 +45,7 @@ typedef struct ProSumerContext {
#define PAIR(high, low) (((uint64_t)(high) << 32) | low)
static
int
decompress
(
GetByteContext
*
gb
,
int
size
,
PutByteContext
*
pb
,
const
u
nsigned
*
lut
)
static
int
decompress
(
GetByteContext
*
gb
,
int
size
,
PutByteContext
*
pb
,
const
u
int32_t
*
lut
)
{
int
pos
,
idx
,
cnt
,
fill
;
uint32_t
a
,
b
,
c
;
...
...
@@ -278,9 +278,9 @@ static const uint32_t table[] = {
0x0001
};
static
void
fill_elements
(
u
nsigned
idx
,
unsigned
shift
,
int
size
,
unsigned
*
e0
,
unsigned
*
e1
)
static
void
fill_elements
(
u
int32_t
idx
,
uint32_t
shift
,
int
size
,
uint32_t
*
e0
,
uint32_t
*
e1
)
{
u
nsigned
a
=
1
,
b
,
g
=
1
,
h
=
idx
<<
(
32
-
shift
);
u
int32_t
a
=
1
,
b
,
g
=
1
,
h
=
idx
<<
(
32
-
shift
);
for
(
int
i
=
0
;
i
<
size
;
i
++
)
{
if
(
!
a
||
!
g
)
...
...
@@ -315,12 +315,12 @@ static void fill_elements(unsigned idx, unsigned shift, int size, unsigned *e0,
}
}
static
void
fill_lut
(
u
nsigned
*
lut
)
static
void
fill_lut
(
u
int32_t
*
lut
)
{
for
(
int
i
=
1
;
i
<
FF_ARRAY_ELEMS
(
table
);
i
+=
2
)
{
u
nsigned
a
=
table
[
i
];
u
nsigned
b
=
a
&
0xFFu
;
u
nsigned
c
,
d
,
e
;
u
int32_t
a
=
table
[
i
];
u
int32_t
b
=
a
&
0xFFu
;
u
int32_t
c
,
d
,
e
;
if
(
b
>
3
)
continue
;
...
...
@@ -333,7 +333,7 @@ static void fill_lut(unsigned *lut)
lut
[
2
*
e
+
1
]
=
0
;
}
else
{
for
(
int
j
=
0
;
j
<
1
<<
d
;
j
++
)
{
u
nsigned
f
=
0xFFFFFFFFu
;
u
int32_t
f
=
0xFFFFFFFFu
;
c
&=
0xFFFFFFu
;
if
((
c
&
0xFF00u
)
!=
0x8000u
)
fill_elements
(
j
,
d
,
365
,
&
c
,
&
f
);
...
...
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