Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
711e0cc9
Commit
711e0cc9
authored
Jun 16, 2010
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioiirfilter: Fix possible NULL pointer dereference
parent
1f545da9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
gst/audiofx/audioiirfilter.c
gst/audiofx/audioiirfilter.c
+3
-5
No files found.
gst/audiofx/audioiirfilter.c
View file @
711e0cc9
...
...
@@ -161,19 +161,17 @@ gst_audio_iir_filter_update_coefficients (GstAudioIIRFilter * self,
self
->
b
=
vb
;
}
if
(
self
->
a
&&
self
->
a
->
n_values
>
0
)
if
(
self
->
a
&&
self
->
a
->
n_values
>
0
)
{
a
=
g_new
(
gdouble
,
self
->
a
->
n_values
);
if
(
self
->
b
&&
self
->
b
->
n_values
>
0
)
b
=
g_new
(
gdouble
,
self
->
b
->
n_values
);
if
(
self
->
a
)
{
for
(
i
=
0
;
i
<
self
->
a
->
n_values
;
i
++
)
{
GValue
*
v
=
g_value_array_get_nth
(
self
->
a
,
i
);
a
[
i
]
=
g_value_get_double
(
v
);
}
}
if
(
self
->
b
)
{
if
(
self
->
b
&&
self
->
b
->
n_values
>
0
)
{
b
=
g_new
(
gdouble
,
self
->
b
->
n_values
);
for
(
i
=
0
;
i
<
self
->
b
->
n_values
;
i
++
)
{
GValue
*
v
=
g_value_array_get_nth
(
self
->
b
,
i
);
b
[
i
]
=
g_value_get_double
(
v
);
...
...
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