Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e007b1d4
Commit
e007b1d4
authored
Nov 16, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smem: do not clobber pixels matrix pointer (fixes #7767)
parent
31ca412c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/stream_out/smem.c
modules/stream_out/smem.c
+9
-2
No files found.
modules/stream_out/smem.c
View file @
e007b1d4
...
...
@@ -363,8 +363,15 @@ static int SendVideo( sout_stream_t *p_stream, sout_stream_id_t *id,
/* Copying data into user buffer */
if
(
id
->
format
->
video
.
i_bits_per_pixel
>
0
)
{
for
(
int
line
=
0
;
line
<
i_line
;
line
++
,
p_pixels
+=
i_line_size
)
memcpy
(
p_pixels
,
p_buffer
->
p_buffer
+
i_line_size
*
line
,
i_line_size
);
uint8_t
*
p_in
=
p_buffer
->
p_buffer
;
uint8_t
*
p_out
=
p_pixels
;
for
(
int
line
=
0
;
line
<
i_line
;
line
++
)
{
memcpy
(
p_out
,
p_in
,
i_line_size
);
p_out
+=
i_line_size
;
p_in
+=
i_line_size
;
}
}
else
{
...
...
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