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
9157ac2f
Commit
9157ac2f
authored
Jul 12, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dirac_vlc: Fix mixed declaration and statements
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
a337cb73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
dirac_vlc.c
libavcodec/dirac_vlc.c
+6
-3
No files found.
libavcodec/dirac_vlc.c
View file @
9157ac2f
...
...
@@ -167,14 +167,16 @@ static inline void search_for_golomb(DiracGolombLUT *l, residual r, int bits)
/* Parity LUTs - even and odd bit end positions */
static
void
generate_parity_lut
(
DiracGolombLUT
*
lut
,
int
even
)
{
for
(
int
idx
=
0
;
idx
<
LUT_SIZE
;
idx
++
)
{
int
idx
;
for
(
idx
=
0
;
idx
<
LUT_SIZE
;
idx
++
)
{
DiracGolombLUT
*
l
=
&
lut
[
idx
];
int
symbol_end_loc
=
-
1
;
uint32_t
code
;
int
i
;
INIT_RESIDUE
(
res
,
idx
,
LUT_BITS
);
for
(
i
nt
i
=
0
;
i
<
LUT_BITS
;
i
++
)
{
for
(
i
=
0
;
i
<
LUT_BITS
;
i
++
)
{
const
int
cond
=
even
?
(
i
&
1
)
:
!
(
i
&
1
);
if
(((
res
>>
(
RSIZE_BITS
-
i
-
1
))
&
1
)
&&
cond
)
{
symbol_end_loc
=
i
+
2
;
...
...
@@ -206,7 +208,8 @@ static void generate_parity_lut(DiracGolombLUT *lut, int even)
/* Reset (off == 0) and needs-one-more-bit (off == 1) LUTs */
static
void
generate_offset_lut
(
DiracGolombLUT
*
lut
,
int
off
)
{
for
(
int
idx
=
0
;
idx
<
LUT_SIZE
;
idx
++
)
{
int
idx
;
for
(
idx
=
0
;
idx
<
LUT_SIZE
;
idx
++
)
{
DiracGolombLUT
*
l
=
&
lut
[
idx
];
INIT_RESIDUE
(
res
,
idx
,
LUT_BITS
);
...
...
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