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
fbe8672e
Commit
fbe8672e
authored
Jan 12, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/shorten: use av_reallocp_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
56c7e105
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shorten.c
libavcodec/shorten.c
+4
-4
No files found.
libavcodec/shorten.c
View file @
fbe8672e
...
...
@@ -136,12 +136,12 @@ static int allocate_buffers(ShortenContext *s)
return
AVERROR_INVALIDDATA
;
}
if
((
err
=
av_reallocp
(
&
s
->
offset
[
chan
],
sizeof
(
int32_t
)
*
if
((
err
=
av_reallocp
_array
(
&
s
->
offset
[
chan
],
sizeof
(
int32_t
)
,
FFMAX
(
1
,
s
->
nmean
)))
<
0
)
return
err
;
if
((
err
=
av_reallocp
(
&
s
->
decoded_base
[
chan
],
(
s
->
blocksize
+
s
->
nwrap
)
*
if
((
err
=
av_reallocp
_array
(
&
s
->
decoded_base
[
chan
],
(
s
->
blocksize
+
s
->
nwrap
),
sizeof
(
s
->
decoded_base
[
0
][
0
])))
<
0
)
return
err
;
for
(
i
=
0
;
i
<
s
->
nwrap
;
i
++
)
...
...
@@ -149,7 +149,7 @@ static int allocate_buffers(ShortenContext *s)
s
->
decoded
[
chan
]
=
s
->
decoded_base
[
chan
]
+
s
->
nwrap
;
}
if
((
err
=
av_reallocp
(
&
s
->
coeffs
,
s
->
nwrap
*
sizeof
(
*
s
->
coeffs
)))
<
0
)
if
((
err
=
av_reallocp
_array
(
&
s
->
coeffs
,
s
->
nwrap
,
sizeof
(
*
s
->
coeffs
)))
<
0
)
return
err
;
return
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