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
33f12f75
Commit
33f12f75
authored
Oct 30, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix integer overflow in picture size calculation
Closes #2885
parent
c2df9da6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+2
-2
No files found.
src/video_output/vout_pictures.c
View file @
33f12f75
...
...
@@ -556,7 +556,7 @@ int __vout_AllocatePicture( vlc_object_t *p_this, picture_t *p_pic,
int
i_width
,
int
i_height
,
int
i_aspect
)
{
VLC_UNUSED
(
p_this
);
int
i_
bytes
,
i_
index
,
i_width_aligned
,
i_height_aligned
;
int
i_index
,
i_width_aligned
,
i_height_aligned
;
/* Make sure the real dimensions are a multiple of 16 */
i_width_aligned
=
(
i_width
+
15
)
>>
4
<<
4
;
...
...
@@ -570,7 +570,7 @@ int __vout_AllocatePicture( vlc_object_t *p_this, picture_t *p_pic,
}
/* Calculate how big the new image should be */
i_bytes
=
p_pic
->
format
.
i_bits_per_pixel
*
size_t
i_bytes
=
(
size_t
)
p_pic
->
format
.
i_bits_per_pixel
*
i_width_aligned
*
i_height_aligned
/
8
;
p_pic
->
p_data
=
vlc_memalign
(
&
p_pic
->
p_data_orig
,
16
,
i_bytes
);
...
...
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