FFmpeg
|
Other functions related to memory allocation. More...
Functions | |
int | av_size_mult (size_t a, size_t b, size_t *r) |
Multiply two size_t values checking for overflow. More... | |
void | av_max_alloc (size_t max) |
Set the maximum size that may be allocated in one block. More... | |
Other functions related to memory allocation.
int av_size_mult | ( | size_t | a, |
size_t | b, | ||
size_t * | r | ||
) |
Multiply two size_t
values checking for overflow.
[in] | a | Operand of multiplication |
[in] | b | Operand of multiplication |
[out] | r | Pointer to the result of the operation |
Definition at line 567 of file mem.c.
Referenced by decode_frame(), and vc1_decode_frame().
void av_max_alloc | ( | size_t | max | ) |
Set the maximum size that may be allocated in one block.
The value specified with this function is effective for all libavutil's heap management functions.
By default, the max value is defined as INT_MAX
.
max | Value to be set as the new maximum size |
Definition at line 76 of file mem.c.
Referenced by opt_max_alloc().