32 #define NULL (void *)0
48 __coverity_negative_sink__(
size);
50 void *ptr = __coverity_alloc__(
size);
51 __coverity_mark_as_uninitialized_buffer__(ptr);
52 __coverity_mark_as_afm_allocated__(ptr,
"av_free");
61 __coverity_negative_sink__(
size);
63 void *ptr = __coverity_alloc__(
size);
64 __coverity_writeall0__(ptr);
65 __coverity_mark_as_afm_allocated__(ptr,
"av_free");
74 __coverity_negative_sink__(
size);
76 __coverity_escape__(ptr);
77 ptr = __coverity_alloc__(
size);
78 __coverity_writeall__(ptr);
79 __coverity_mark_as_afm_allocated__(ptr,
"av_free");
87 __coverity_free__(ptr);
88 __coverity_mark_as_afm_freed__(ptr,
"av_free");
93 __coverity_negative_sink__(
b);
94 __coverity_negative_sink__(
c);
96 return (
double)
a * (double)
b / (
double)
c;
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
Rescale a 64-bit integer with specified rounding.
AVRounding
Rounding methods.
void * av_free(void *ptr)
Free a memory block which has been allocated with a function of av_malloc() or av_realloc() family.
void * av_realloc(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
void * av_malloc(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...