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
de52f56a
Commit
de52f56a
authored
Oct 26, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swscale: use calloc instead of malloc
parent
45f82a69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
modules/video_chroma/swscale.c
modules/video_chroma/swscale.c
+1
-10
No files found.
modules/video_chroma/swscale.c
View file @
de52f56a
...
...
@@ -155,7 +155,7 @@ static int OpenScaler( vlc_object_t *p_this )
/* */
p_filter
->
pf_video_filter
=
Filter
;
/* Allocate the memory needed to store the decoder's structure */
if
(
(
p_filter
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
filter_sys_t
))
)
==
NULL
)
if
(
(
p_filter
->
p_sys
=
p_sys
=
calloc
(
1
,
sizeof
(
filter_sys_t
))
)
==
NULL
)
return
VLC_ENOMEM
;
/* Set CPU capabilities */
...
...
@@ -179,16 +179,7 @@ static int OpenScaler( vlc_object_t *p_this )
default:
p_sys
->
i_sws_flags
=
SWS_BICUBIC
;
i_sws_mode
=
2
;
break
;
}
p_sys
->
p_src_filter
=
NULL
;
p_sys
->
p_dst_filter
=
NULL
;
/* Misc init */
p_sys
->
ctx
=
NULL
;
p_sys
->
ctxA
=
NULL
;
p_sys
->
p_src_a
=
NULL
;
p_sys
->
p_dst_a
=
NULL
;
p_sys
->
p_src_e
=
NULL
;
p_sys
->
p_dst_e
=
NULL
;
memset
(
&
p_sys
->
fmt_in
,
0
,
sizeof
(
p_sys
->
fmt_in
)
);
memset
(
&
p_sys
->
fmt_out
,
0
,
sizeof
(
p_sys
->
fmt_out
)
);
...
...
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