only avio_open if AVContext.pb hasn't been allocated