Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
450cf400
Commit
450cf400
authored
Jul 18, 2016
by
Zhao Zhili
Committed by
Michael Niedermayer
Jul 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/mem: fix wrong comment
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
daf421d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mem.h
libavutil/mem.h
+2
-2
No files found.
libavutil/mem.h
View file @
450cf400
...
...
@@ -339,8 +339,8 @@ void *av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size,
static
inline
int
av_size_mult
(
size_t
a
,
size_t
b
,
size_t
*
r
)
{
size_t
t
=
a
*
b
;
/* Hack inspired from glibc:
only
try the division if nelem and elsize
* are both
greater
than sqrt(SIZE_MAX). */
/* Hack inspired from glibc:
don't
try the division if nelem and elsize
* are both
less
than sqrt(SIZE_MAX). */
if
((
a
|
b
)
>=
((
size_t
)
1
<<
(
sizeof
(
size_t
)
*
4
))
&&
a
&&
t
/
a
!=
b
)
return
AVERROR
(
EINVAL
);
*
r
=
t
;
...
...
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