Procs
proc av_file_map(filename: cstring; bufptr: ptr ptr uint8; size: ptr csize_t; log_offset: cint; log_ctx: pointer): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_file_unmap(bufptr: ptr uint8; size: csize_t) {.importc, cdecl, ...raises: [], tags: [], forbids: [].}
proc av_tempfile(prefix: cstring; filename: cstringArray; log_offset: cuint; log_ctx: pointer): cint {.importc, cdecl, ...raises: [], tags: [], forbids: [].}