Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9ba11902
Commit
9ba11902
authored
Mar 22, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/mem: avoid using intptr_t to access void* in av_dynarray_add()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b0dcf765
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mem.c
libavutil/mem.c
+3
-3
No files found.
libavutil/mem.c
View file @
9ba11902
...
...
@@ -280,11 +280,11 @@ void *av_memdup(const void *p, size_t size)
void
av_dynarray_add
(
void
*
tab_ptr
,
int
*
nb_ptr
,
void
*
elem
)
{
intptr_t
*
tab
=
*
(
intptr_t
**
)
tab_ptr
;
void
**
tab
=
*
(
void
*
**
)
tab_ptr
;
AV_DYNARRAY_ADD
(
INT_MAX
,
sizeof
(
*
tab
),
tab
,
*
nb_ptr
,
{
tab
[
*
nb_ptr
]
=
(
intptr_t
)
elem
;
*
(
intptr_t
**
)
tab_ptr
=
tab
;
tab
[
*
nb_ptr
]
=
elem
;
*
(
void
*
**
)
tab_ptr
=
tab
;
},
{
*
nb_ptr
=
0
;
av_freep
(
tab_ptr
);
...
...
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