31 va_start(args, buffer_size);
37 int main(
int argc,
char **argv)
56 printf(
"Test NULL buffer failed.\n");
60 if(result != 3 || strncmp(buffer,
"f", 2)) {
61 printf(
"Test buffer too small failed.\n");
65 if(result != 3 || strncmp(buffer,
"foo", 4)) {
66 printf(
"Test buffer sufficiently big failed.\n");
void av_log_set_level(int level)
Set the log level.
int main(int argc, char **argv)
#define AV_LOG_QUIET
Print no output.
#define AV_LOG_PANIC
Something went really wrong and we will crash now.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
void av_log(void *avcl, int level, const char *fmt,...)
int av_log_format_line2(void *ptr, int level, const char *fmt, va_list vl, char *line, int line_size, int *print_prefix)
Format a line of log the same way as the default callback.
const char AVS_Value args
#define AV_LOG_INFO
Standard information.
static int call_log_format_line2(const char *fmt, char *buffer, int buffer_size,...)
#define AV_LOG_FATAL
Something went wrong and recovery is not possible.