Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
438
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
350ea55e
Commit
350ea55e
authored
2 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
wall: do not allocate dummy picture on stack
Fixes #27011.
parent
aadbaeb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1997
wall: do not allocate dummy picture on stack
Pipeline
#225832
passed with stage
in 19 minutes and 8 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/video_splitter/wall.c
+12
-9
12 additions, 9 deletions
modules/video_splitter/wall.c
with
12 additions
and
9 deletions
modules/video_splitter/wall.c
+
12
−
9
View file @
350ea55e
...
...
@@ -267,17 +267,20 @@ static int Filter( video_splitter_t *p_splitter, picture_t *pp_dst[], picture_t
picture_t
*
p_dst
=
pp_dst
[
p_output
->
i_output
];
/* */
picture_t
tmp
=
*
p_src
;
for
(
int
i
=
0
;
i
<
tmp
.
i_planes
;
i
++
)
for
(
int
i
=
0
;
i
<
p_src
->
i_planes
;
i
++
)
{
plane_t
*
p0
=
&
tmp
.
p
[
0
];
plane_t
*
p
=
&
tmp
.
p
[
i
];
const
int
i_y
=
p_output
->
i_top
*
p
->
i_visible_pitch
/
p0
->
i_visible_pitch
;
const
int
i_x
=
p_output
->
i_left
*
p
->
i_visible_lines
/
p0
->
i_visible_lines
;
p
->
p_pixels
+=
i_y
*
p
->
i_pitch
+
(
i_x
-
(
i_x
%
p
->
i_pixel_pitch
));
const
plane_t
*
p0
=
p_src
->
p
;
plane_t
p
=
p_src
->
p
[
i
];
const
int
i_y
=
p_output
->
i_top
*
p
.
i_visible_pitch
/
p0
->
i_visible_pitch
;
const
int
i_x
=
p_output
->
i_left
*
p
.
i_visible_lines
/
p0
->
i_visible_lines
;
p
.
p_pixels
+=
i_y
*
p
.
i_pitch
+
(
i_x
-
(
i_x
%
p
.
i_pixel_pitch
));
plane_CopyPixels
(
p_dst
->
p
+
i
,
&
p
);
}
picture_Copy
(
p_dst
,
&
tmp
);
picture_Copy
Properties
(
p_dst
,
p_src
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment