Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b23cf13c
Commit
b23cf13c
authored
Mar 29, 2010
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
Originally committed as revision 22716 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
32240799
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bitstream.c
libavcodec/bitstream.c
+3
-3
No files found.
libavcodec/bitstream.c
View file @
b23cf13c
...
@@ -170,13 +170,13 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
...
@@ -170,13 +170,13 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
return
-
1
;
return
-
1
;
table
=
&
vlc
->
table
[
table_index
];
table
=
&
vlc
->
table
[
table_index
];
for
(
i
=
0
;
i
<
table_size
;
i
++
)
{
for
(
i
=
0
;
i
<
table_size
;
i
++
)
{
table
[
i
][
1
]
=
0
;
//bits
table
[
i
][
1
]
=
0
;
//bits
table
[
i
][
0
]
=
-
1
;
//codes
table
[
i
][
0
]
=
-
1
;
//codes
}
}
/* first pass: map codes and compute auxillary table sizes */
/* first pass: map codes and compute auxillary table sizes */
for
(
i
=
0
;
i
<
nb_codes
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_codes
;
i
++
)
{
n
=
codes
[
i
].
bits
;
n
=
codes
[
i
].
bits
;
code
=
codes
[
i
].
code
;
code
=
codes
[
i
].
code
;
symbol
=
codes
[
i
].
symbol
;
symbol
=
codes
[
i
].
symbol
;
...
@@ -192,7 +192,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
...
@@ -192,7 +192,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
j
=
bitswap_32
(
code
);
j
=
bitswap_32
(
code
);
inc
=
1
<<
n
;
inc
=
1
<<
n
;
}
}
for
(
k
=
0
;
k
<
nb
;
k
++
)
{
for
(
k
=
0
;
k
<
nb
;
k
++
)
{
#ifdef DEBUG_VLC
#ifdef DEBUG_VLC
av_log
(
NULL
,
AV_LOG_DEBUG
,
"%4x: code=%d n=%d
\n
"
,
av_log
(
NULL
,
AV_LOG_DEBUG
,
"%4x: code=%d n=%d
\n
"
,
j
,
i
,
n
);
j
,
i
,
n
);
...
...
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