rmdec: Use the AVIOContext given as parameter in rm_read_metadata()