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
ccb3a601
Commit
ccb3a601
authored
Jan 31, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix [24726]
parent
b813408a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
src/video_output/vout_pictures.h
src/video_output/vout_pictures.h
+4
-12
No files found.
src/video_output/vout_pictures.h
View file @
ccb3a601
...
@@ -109,22 +109,14 @@
...
@@ -109,22 +109,14 @@
* void *vlc_memalign( size_t align, size_t size, void **pp_orig )
* void *vlc_memalign( size_t align, size_t size, void **pp_orig )
* *pp_orig is the pointer that has to be freed afterwards.
* *pp_orig is the pointer that has to be freed afterwards.
*/
*/
#if defined (HAVE_POSIX_MEMALIGN)
static
inline
static
inline
void
*
vlc_memalign
(
size_t
align
,
size_t
size
,
void
**
pp
)
void
*
vlc_memalign
(
void
**
pp
,
size_t
align
,
size_t
size
)
{
{
#if defined (HAVE_POSIX_MEMALIGN)
return
posix_memalign
(
pp
,
align
,
size
)
?
NULL
:
*
pp
;
return
posix_memalign
(
pp
,
align
,
size
)
?
NULL
:
*
pp
;
}
#elif defined (HAVE_MEMALIGN)
#elif defined (HAVE_MEMALIGN)
static
inline
void
*
vlc_memalign
(
size_t
align
,
size_t
size
,
void
**
pp
)
{
return
*
pp
=
memalign
(
align
,
size
);
return
*
pp
=
memalign
(
align
,
size
);
}
#else
#else
/* We don't have any choice but to align manually */
static
inline
void
*
vlc_memalign
(
size_t
align
,
size_t
size
,
void
**
pp
)
{
unsigned
char
*
ptr
;
unsigned
char
*
ptr
;
if
(
align
<
1
)
if
(
align
<
1
)
...
@@ -138,6 +130,6 @@ void *vlc_memalign (size_t align, size_t size, void **pp)
...
@@ -138,6 +130,6 @@ void *vlc_memalign (size_t align, size_t size, void **pp)
*
pp
=
ptr
;
*
pp
=
ptr
;
ptr
+=
align
;
ptr
+=
align
;
return
(
void
*
)(((
uintptr_t
)
ptr
)
&
~
align
);
return
(
void
*
)(((
uintptr_t
)
ptr
)
&
~
align
);
}
#endif
#endif
}
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