Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
vo-amrwbenc
Commits
cea9147f
Commit
cea9147f
authored
Dec 19, 2010
by
Martin Storsjo
Browse files
Make the mem_align routines 64-bit safe
parent
53ad2ee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
amrwbenc/src/mem_align.c
amrwbenc/src/mem_align.c
+3
-2
No files found.
amrwbenc/src/mem_align.c
View file @
cea9147f
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "mem_align.h"
#include "mem_align.h"
#include <stdint.h>
/*****************************************************************************
/*****************************************************************************
*
*
...
@@ -66,8 +67,8 @@ mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment,
...
@@ -66,8 +67,8 @@ mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment,
pMemop
->
Set
(
CodecID
,
tmp
,
0
,
size
+
alignment
);
pMemop
->
Set
(
CodecID
,
tmp
,
0
,
size
+
alignment
);
mem_ptr
=
mem_ptr
=
(
unsigned
char
*
)
((
unsigned
in
t
)
(
tmp
+
alignment
-
1
)
&
(
unsigned
char
*
)
((
intptr_
t
)
(
tmp
+
alignment
-
1
)
&
(
~
((
unsigned
in
t
)
(
alignment
-
1
))));
(
~
((
intptr_
t
)
(
alignment
-
1
))));
if
(
mem_ptr
==
tmp
)
if
(
mem_ptr
==
tmp
)
mem_ptr
+=
alignment
;
mem_ptr
+=
alignment
;
...
...
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