Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
2f662e48
Commit
2f662e48
authored
Aug 06, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix double free bug in psychedelic filter
parent
594d7138
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/video_filter/psychedelic.c
modules/video_filter/psychedelic.c
+3
-2
No files found.
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
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