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
eb928d42
Commit
eb928d42
authored
Aug 27, 2008
by
Laurent Aimar
Committed by
Jean-Baptiste Kempf
Aug 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a potential crash due to a mix up between pitch and pixel pitch in blend.c.
parent
695e158c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/video_filter/blend.c
modules/video_filter/blend.c
+3
-3
No files found.
modules/video_filter/blend.c
View file @
eb928d42
...
...
@@ -1359,7 +1359,7 @@ static void BlendRGBAI420( filter_t *p_filter, picture_t *p_dst,
i_src_pix_pitch
=
p_src
->
p
->
i_pixel_pitch
;
i_src2_pitch
=
p_src
->
p
->
i_pitch
;
p_src2
=
p_src
->
p
->
p_pixels
+
p_filter
->
fmt_in
.
video
.
i_x_offset
*
i_src
2
_pitch
+
p_filter
->
fmt_in
.
video
.
i_x_offset
*
i_src
_pix
_pitch
+
p_src
->
p
->
i_pitch
*
p_filter
->
fmt_in
.
video
.
i_y_offset
;
...
...
@@ -1424,7 +1424,7 @@ static void BlendRGBAR24( filter_t *p_filter, picture_t *p_dst_pic,
i_src_pix_pitch
=
p_src
->
p
->
i_pixel_pitch
;
i_src2_pitch
=
p_src
->
p
->
i_pitch
;
p_src2
=
p_src
->
p
->
p_pixels
+
p_filter
->
fmt_in
.
video
.
i_x_offset
*
i_pix_pitch
+
p_filter
->
fmt_in
.
video
.
i_x_offset
*
i_
src_
pix_pitch
+
p_src
->
p
->
i_pitch
*
p_filter
->
fmt_in
.
video
.
i_y_offset
;
vlc_rgb_index
(
&
i_rindex
,
&
i_gindex
,
&
i_bindex
,
&
p_filter
->
fmt_out
.
video
);
...
...
@@ -1477,7 +1477,7 @@ static void BlendRGBAR16( filter_t *p_filter, picture_t *p_dst_pic,
i_src_pix_pitch
=
p_src
->
p
->
i_pixel_pitch
;
i_src2_pitch
=
p_src
->
p
->
i_pitch
;
p_src2
=
p_src
->
p
->
p_pixels
+
p_filter
->
fmt_in
.
video
.
i_x_offset
*
i_pix_pitch
+
p_filter
->
fmt_in
.
video
.
i_x_offset
*
i_
src_
pix_pitch
+
p_src
->
p
->
i_pitch
*
p_filter
->
fmt_in
.
video
.
i_y_offset
;
/* Draw until we reach the bottom of the subtitle */
...
...
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