FFmpeg
Macros | Functions
ffeval.c File Reference
#include "config.h"
#include "libavutil/eval.h"
#include "libavutil/mem.h"
#include "compat/getopt.c"

Go to the source code of this file.

Macros

#define GROW_ARRAY()
 

Functions

static void usage (void)
 
int main (int argc, char **argv)
 

Detailed Description

simple arithmetic expression evaluator

Definition in file ffeval.c.

Macro Definition Documentation

◆ GROW_ARRAY

#define GROW_ARRAY ( )
Value:
do { \
if (!av_dynarray2_add((void **)&buf, &buf_size, 1, NULL)) { \
av_log(NULL, AV_LOG_ERROR, \
"Memory allocation problem occurred\n"); \
return 1; \
} \
} while (0)

Function Documentation

◆ usage()

static void usage ( void  )
static

Definition at line 38 of file ffeval.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 51 of file ffeval.c.

av_dynarray2_add
void * av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size, const uint8_t *elem_data)
Add an element of size elem_size to a dynamic array.
Definition: mem.c:330
AV_LOG_ERROR
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:181
NULL
#define NULL
Definition: coverity.c:32