Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
02c79d62
Commit
02c79d62
authored
Oct 22, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential NULL dereference (CID 27).
And fix a potential memleak.
parent
5219f5ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/video_output/video_output.c
src/video_output/video_output.c
+11
-3
No files found.
src/video_output/video_output.c
View file @
02c79d62
...
@@ -1557,13 +1557,21 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1557,13 +1557,21 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
{
{
psz_filter
=
realloc
(
psz_filter
,
strlen
(
psz_filter
)
+
psz_filter
=
realloc
(
psz_filter
,
strlen
(
psz_filter
)
+
sizeof
(
":deinterlace"
)
);
sizeof
(
":deinterlace"
)
);
if
(
psz_filter
&&
*
psz_filter
)
strcat
(
psz_filter
,
":"
);
if
(
psz_filter
)
{
if
(
*
psz_filter
)
strcat
(
psz_filter
,
":"
);
strcat
(
psz_filter
,
"deinterlace"
);
strcat
(
psz_filter
,
"deinterlace"
);
}
}
}
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_this
,
VLC_OBJECT_INPUT
,
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_this
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
FIND_PARENT
);
if
(
!
p_input
)
return
VLC_EGENERIC
;
if
(
!
p_input
)
{
free
(
psz_filter
);
return
VLC_EGENERIC
;
}
if
(
psz_mode
&&
*
psz_mode
)
if
(
psz_mode
&&
*
psz_mode
)
{
{
...
...
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