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
2df6e978
Commit
2df6e978
authored
Mar 13, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill a av_mallocz_static()
Originally committed as revision 8395 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e2e712e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
dv.c
libavcodec/dv.c
+2
-5
No files found.
libavcodec/dv.c
View file @
2df6e978
...
...
@@ -75,7 +75,7 @@ static void* dv_anchor[DV_ANCHOR_SIZE];
#endif
/* XXX: also include quantization */
static
RL_VLC_ELEM
*
dv_rl_vlc
;
static
RL_VLC_ELEM
dv_rl_vlc
[
1184
]
;
/* VLC encoding lookup table */
static
struct
dv_vlc_pair
{
uint32_t
vlc
;
...
...
@@ -154,10 +154,7 @@ static int dvvideo_init(AVCodecContext *avctx)
to accelerate the parsing of partial codes */
init_vlc
(
&
dv_vlc
,
TEX_VLC_BITS
,
j
,
new_dv_vlc_len
,
1
,
1
,
new_dv_vlc_bits
,
2
,
2
,
0
);
dv_rl_vlc
=
av_mallocz_static
(
dv_vlc
.
table_size
*
sizeof
(
RL_VLC_ELEM
));
if
(
!
dv_rl_vlc
)
return
AVERROR
(
ENOMEM
);
assert
(
dv_vlc
.
table_size
==
1184
);
for
(
i
=
0
;
i
<
dv_vlc
.
table_size
;
i
++
){
int
code
=
dv_vlc
.
table
[
i
][
0
];
...
...
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