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
d7645fb9
Commit
d7645fb9
authored
Mar 18, 2007
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix init_vlc() with nonzero flags
Originally committed as revision 8443 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
575bf46f
Hide 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 @
d7645fb9
...
...
@@ -227,10 +227,10 @@ static int build_table(VLC *vlc, int table_nb_bits,
int
init_vlc
(
VLC
*
vlc
,
int
nb_bits
,
int
nb_codes
,
const
void
*
bits
,
int
bits_wrap
,
int
bits_size
,
const
void
*
codes
,
int
codes_wrap
,
int
codes_size
,
int
use_static
)
int
flags
)
{
vlc
->
bits
=
nb_bits
;
if
(
!
use_static
)
{
if
(
!
(
flags
&
INIT_VLC_USE_STATIC
)
)
{
vlc
->
table
=
NULL
;
vlc
->
table_allocated
=
0
;
vlc
->
table_size
=
0
;
...
...
@@ -248,7 +248,7 @@ int init_vlc(VLC *vlc, int nb_bits, int nb_codes,
if
(
build_table
(
vlc
,
nb_bits
,
nb_codes
,
bits
,
bits_wrap
,
bits_size
,
codes
,
codes_wrap
,
codes_size
,
0
,
0
,
use_static
)
<
0
)
{
0
,
0
,
flags
)
<
0
)
{
av_free
(
vlc
->
table
);
return
-
1
;
}
...
...
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