29 (void)
ctx; (void)fmt; (void)args;
33int main(
int argc,
char **argv)
35 const char *path = argc > 1 ? argv[1] :
"file.c";
49 for (
int i = 0;
i < 2;
i++) {
56 fprintf(stderr,
"expected level %d with offset=%d, got %d\n",
static AVFormatContext * ctx
#define i(width, name, range_min, range_max)
static void log_callback(void *ptr, int level, const char *fmt, va_list vl)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
Set the logging callback.
void av_file_unmap(uint8_t *bufptr, size_t size)
Unmap or free the buffer bufptr created by av_file_map().
int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, int log_offset, void *log_ctx)
Read the file with name filename, and put its content in a newly allocated buffer or map it with mmap...
static void log_callback(void *ctx, int level, const char *fmt, va_list args)
static int last_log_level