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
a65e5abc
Commit
a65e5abc
authored
Jun 06, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a missing const to video_format_Copy.
parent
e3bee650
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/vlc_es.h
include/vlc_es.h
+3
-3
No files found.
include/vlc_es.h
View file @
a65e5abc
...
...
@@ -147,15 +147,15 @@ static inline void video_format_Init( video_format_t *p_src, vlc_fourcc_t i_chro
* \param p_dst video_format_t to copy to
* \param p_src video_format_t to copy from
*/
static
inline
int
video_format_Copy
(
video_format_t
*
p_dst
,
video_format_t
*
p_src
)
static
inline
int
video_format_Copy
(
video_format_t
*
p_dst
,
const
video_format_t
*
p_src
)
{
memcpy
(
p_dst
,
p_src
,
sizeof
(
video_format_
t
)
);
memcpy
(
p_dst
,
p_src
,
sizeof
(
*
p_ds
t
)
);
if
(
p_src
->
p_palette
)
{
p_dst
->
p_palette
=
(
video_palette_t
*
)
malloc
(
sizeof
(
video_palette_t
)
);
if
(
!
p_dst
->
p_palette
)
return
VLC_ENOMEM
;
memcpy
(
p_dst
->
p_palette
,
p_src
->
p_palette
,
sizeof
(
video_palette_t
)
);
memcpy
(
p_dst
->
p_palette
,
p_src
->
p_palette
,
sizeof
(
*
p_dst
->
p_palette
)
);
}
return
VLC_SUCCESS
;
};
...
...
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