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
cbd9b2f9
Commit
cbd9b2f9
authored
Jun 30, 2012
by
Ronald S. Bultje
Committed by
Martin Storsjö
Jul 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snow: remove the runs[] VLA.
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
4d8516fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
snow.c
libavcodec/snow.c
+2
-0
snow.h
libavcodec/snow.h
+1
-0
snowenc.c
libavcodec/snowenc.c
+1
-1
No files found.
libavcodec/snow.c
View file @
cbd9b2f9
...
...
@@ -451,6 +451,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
FF_ALLOCZ_OR_GOTO
(
avctx
,
s
->
spatial_dwt_buffer
,
width
*
height
*
sizeof
(
DWTELEM
),
fail
);
//FIXME this does not belong here
FF_ALLOCZ_OR_GOTO
(
avctx
,
s
->
temp_dwt_buffer
,
width
*
sizeof
(
DWTELEM
),
fail
);
FF_ALLOCZ_OR_GOTO
(
avctx
,
s
->
temp_idwt_buffer
,
width
*
sizeof
(
IDWTELEM
),
fail
);
FF_ALLOC_OR_GOTO
(
avctx
,
s
->
run_buffer
,
((
width
+
1
)
>>
1
)
*
((
height
+
1
)
>>
1
)
*
sizeof
(
*
s
->
run_buffer
),
fail
);
for
(
i
=
0
;
i
<
MAX_REF_FRAMES
;
i
++
)
for
(
j
=
0
;
j
<
MAX_REF_FRAMES
;
j
++
)
...
...
@@ -637,6 +638,7 @@ av_cold void ff_snow_common_end(SnowContext *s)
av_freep
(
&
s
->
temp_dwt_buffer
);
av_freep
(
&
s
->
spatial_idwt_buffer
);
av_freep
(
&
s
->
temp_idwt_buffer
);
av_freep
(
&
s
->
run_buffer
);
s
->
m
.
me
.
temp
=
NULL
;
av_freep
(
&
s
->
m
.
me
.
scratchpad
);
...
...
libavcodec/snow.h
View file @
cbd9b2f9
...
...
@@ -135,6 +135,7 @@ typedef struct SnowContext{
DWTELEM
*
temp_dwt_buffer
;
IDWTELEM
*
spatial_idwt_buffer
;
IDWTELEM
*
temp_idwt_buffer
;
int
*
run_buffer
;
int
colorspace_type
;
int
chroma_h_shift
;
int
chroma_v_shift
;
...
...
libavcodec/snowenc.c
View file @
cbd9b2f9
...
...
@@ -836,7 +836,7 @@ static int encode_subband_c0run(SnowContext *s, SubBand *b, IDWTELEM *src, IDWTE
if
(
1
){
int
run
=
0
;
int
runs
[
w
*
h
]
;
int
*
runs
=
s
->
run_buffer
;
int
run_index
=
0
;
int
max_index
;
...
...
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