Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
44863b2c
Commit
44863b2c
authored
Jun 01, 2020
by
Limin Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/iirfilter: remove FF_ALLOCZ_OR_GOTO and gotos label
Signed-off-by:
Limin Wang
<
lance.lmwang@gmail.com
>
parent
ebf2a8ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
iirfilter.c
libavcodec/iirfilter.c
+5
-9
No files found.
libavcodec/iirfilter.c
View file @
44863b2c
...
...
@@ -171,12 +171,10 @@ av_cold struct FFIIRFilterCoeffs *ff_iir_filter_init_coeffs(void *avc,
if
(
order
<=
0
||
order
>
MAXORDER
||
cutoff_ratio
>=
1
.
0
)
return
NULL
;
FF_ALLOCZ_OR_GOTO
(
avc
,
c
,
sizeof
(
FFIIRFilterCoeffs
),
init_fail
);
FF_ALLOC_OR_GOTO
(
avc
,
c
->
cx
,
sizeof
(
c
->
cx
[
0
])
*
((
order
>>
1
)
+
1
),
init_fail
);
FF_ALLOC_OR_GOTO
(
avc
,
c
->
cy
,
sizeof
(
c
->
cy
[
0
])
*
order
,
init_fail
);
if
(
!
(
c
=
av_mallocz
(
sizeof
(
*
c
)))
||
!
(
c
->
cx
=
av_malloc
(
sizeof
(
c
->
cx
[
0
])
*
((
order
>>
1
)
+
1
)))
||
!
(
c
->
cy
=
av_malloc
(
sizeof
(
c
->
cy
[
0
])
*
order
)))
return
NULL
;
c
->
order
=
order
;
switch
(
filt_type
)
{
...
...
@@ -190,13 +188,11 @@ av_cold struct FFIIRFilterCoeffs *ff_iir_filter_init_coeffs(void *avc,
break
;
default:
av_log
(
avc
,
AV_LOG_ERROR
,
"filter type is not currently implemented
\n
"
);
goto
init_fail
;
return
NULL
;
}
if
(
!
ret
)
return
c
;
init_fail:
return
NULL
;
}
...
...
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