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
5c2fc028
Commit
5c2fc028
authored
Mar 22, 2015
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puzzle: fix error check, do not leak pictures on error
close #14006
parent
2e3dee03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/video_filter/puzzle.c
modules/video_filter/puzzle.c
+5
-2
No files found.
modules/video_filter/puzzle.c
View file @
5c2fc028
...
@@ -289,9 +289,12 @@ picture_t *Filter( filter_t *p_filter, picture_t *p_pic_in ) {
...
@@ -289,9 +289,12 @@ picture_t *Filter( filter_t *p_filter, picture_t *p_pic_in ) {
/* assert no mismatch between sizes */
/* assert no mismatch between sizes */
if
(
p_sys
->
s_current_param
.
i_pict_width
!=
p_sys
->
s_current_param
.
i_desk_width
if
(
p_sys
->
s_current_param
.
i_pict_width
!=
p_sys
->
s_current_param
.
i_desk_width
||
p_sys
->
s_current_param
.
i_pict_height
!=
p_sys
->
s_current_param
.
i_desk_height
||
p_sys
->
s_current_param
.
i_pict_height
!=
p_sys
->
s_current_param
.
i_desk_height
||
p_sys
->
s_current_param
.
i_pict_width
!=
(
int
)
p_fmt_in
->
i_width
||
p_sys
->
s_current_param
.
i_pict_width
!=
(
int
)
p_fmt_in
->
i_visible_width
||
p_sys
->
s_current_param
.
i_pict_height
!=
(
int
)
p_fmt_in
->
i_height
)
||
p_sys
->
s_current_param
.
i_pict_height
!=
(
int
)
p_fmt_in
->
i_visible_height
)
{
picture_Release
(
p_pic_in
);
picture_Release
(
p_pic_out
);
return
NULL
;
return
NULL
;
}
vlc_mutex_lock
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
...
...
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