Go to the documentation of this file.
29 (void)
ctx; (void)fmt; (void)args;
33 int 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",
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...
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int main(int argc, char **argv)
static AVFormatContext * ctx
void av_file_unmap(uint8_t *bufptr, size_t size)
Unmap or free the buffer bufptr created by av_file_map().
static void log_callback(void *ctx, int level, const char *fmt, va_list args)
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
Set the logging callback.
#define i(width, name, range_min, range_max)
static int last_log_level