Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
2f662e48
Commit
2f662e48
authored
Aug 06, 2006
by
Jean-Paul Saman
Browse files
Fix double free bug in psychedelic filter
parent
594d7138
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_filter/psychedelic.c
View file @
2f662e48
...
...
@@ -115,6 +115,7 @@ static void Destroy( vlc_object_t *p_this )
if
(
p_filter
->
p_sys
->
p_image
)
image_HandlerDelete
(
p_filter
->
p_sys
->
p_image
);
p_filter
->
p_sys
->
p_image
=
NULL
;
free
(
p_filter
->
p_sys
);
}
...
...
@@ -134,8 +135,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
int
x
,
y
;
uint8_t
u
,
v
;
video_format_t
fmt_out
=
{
0
};
picture_t
*
p_converted
;
video_format_t
fmt_out
=
{
0
};
fmt_out
.
p_palette
=
NULL
;
if
(
!
p_pic
)
return
NULL
;
...
...
@@ -175,7 +177,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_outpic
->
p
[
Y_PLANE
].
p_pixels
,
p_pic
->
p
[
Y_PLANE
].
p_pixels
,
p_outpic
->
p
[
Y_PLANE
].
i_lines
*
p_outpic
->
p
[
Y_PLANE
].
i_pitch
);
/* image visualization */
fmt_out
=
p_filter
->
fmt_out
.
video
;
fmt_out
.
i_width
=
p_filter
->
fmt_out
.
video
.
i_width
*
p_filter
->
p_sys
->
scale
/
150
;
...
...
Write
Preview
Supports
Markdown
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