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
429232b9
Commit
429232b9
authored
Oct 31, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a allocation failure test in swscale.
parent
9db11bdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/video_filter/swscale.c
modules/video_filter/swscale.c
+4
-2
No files found.
modules/video_filter/swscale.c
View file @
429232b9
...
...
@@ -405,8 +405,10 @@ static int Init( filter_t *p_filter )
p_sys
->
p_src_e
=
picture_New
(
p_fmti
->
i_chroma
,
i_fmti_width
,
p_fmti
->
i_height
,
0
,
1
);
p_sys
->
p_dst_e
=
picture_New
(
p_fmto
->
i_chroma
,
i_fmto_width
,
p_fmto
->
i_height
,
0
,
1
);
memset
(
p_sys
->
p_src_e
->
p
[
0
].
p_pixels
,
0
,
p_sys
->
p_src_e
->
p
[
0
].
i_pitch
*
p_sys
->
p_src_e
->
p
[
0
].
i_lines
);
memset
(
p_sys
->
p_dst_e
->
p
[
0
].
p_pixels
,
0
,
p_sys
->
p_dst_e
->
p
[
0
].
i_pitch
*
p_sys
->
p_dst_e
->
p
[
0
].
i_lines
);
if
(
p_sys
->
p_src_e
)
memset
(
p_sys
->
p_src_e
->
p
[
0
].
p_pixels
,
0
,
p_sys
->
p_src_e
->
p
[
0
].
i_pitch
*
p_sys
->
p_src_e
->
p
[
0
].
i_lines
);
if
(
p_sys
->
p_dst_e
)
memset
(
p_sys
->
p_dst_e
->
p
[
0
].
p_pixels
,
0
,
p_sys
->
p_dst_e
->
p
[
0
].
i_pitch
*
p_sys
->
p_dst_e
->
p
[
0
].
i_lines
);
}
if
(
!
p_sys
->
ctx
||
...
...
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