The API call avio_alloc_context, which sets up a custom IO context, takes in a pointer to a Seek function. If you are reading from an IStream, you can use the following:
/**
* Seeks to a given position on an IStream.
*
* @param ptr A pointer to the user-defined IO data structure.
* @pa...